feat: support system-context-menu on Linux#45848
Conversation
52a787c to
02856b2
Compare
|
Had a small question on Point value, On windows we are not returning the result in DIP today electron/shell/browser/native_window_views_win.cc Lines 294 to 295 in 36ec9d7 |
|
@deepak1556 looks like this likewise doesn't return the results in DIP - https://gist.github.com/eab26d265b7944b5f026ff8fa20e4ab1 shows:
For the same right-click. My thought here is we should leave both non-DIP and ensure documentation notes potential need to correct for DIP coordinates. |
Agreed. Some more notes, x11 and wayland uses different scale factors to get the cursor screen point x11 - https://source.chromium.org/chromium/chromium/src/+/main:ui/ozone/platform/x11/x11_screen_ozone.cc;l=54-61 We would need to confirm which API to expose on linux, for windows we have https://github.com/electron/electron/blob/main/docs/api/screen.md#screenscreentodippointpoint-windows |
02856b2 to
f46d097
Compare
f46d097 to
430d1f9
Compare
430d1f9 to
ba99981
Compare
|
Release Notes Persisted
|
|
I have automatically backported this PR to "36-x-y", please check out #46399 |
|
I have automatically backported this PR to "35-x-y", please check out #46400 |
|
@deepak1556 has manually backported this PR to "35-x-y", please check out #46977 |
feat: support system-context-menu on Linux
Description of Change
Closes #45799.
Refs CL:6231191
Adds support for
system-context-menuto Linux, allowing developers to conditionally show the native context menu in non-client regions.cc @bpasero
Checklist
npm testpassesRelease Notes
Notes: Added support for
system-context-menuon Linux.