[Bug]: screen.getCursorScreenPoint() not works on linux (a regression from v28.x.x) #42519
Open
3 tasks done
Labels
31-x-y
bug 🪲
component/screen
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
Preflight Checklist
Electron Version
31.0.1
What operating system are you using?
Ubuntu
Operating System Version
Ubuntu 22.04
What arch are you using?
x64
Last Known Working Electron version
28.3.3
Expected Behavior
screen.getCursorScreenPoint() should return the correct position of the mouse even when the mouse cursor is out of the main window or the mouse event is pass-through.
Actual Behavior
screen.getCursorScreenPoint() doesn't return the correct position when the mouse is out of the main window.
I can see that this method is working on MacOS (with v31.0.1)
Testcase Gist URL
https://gist.github.com/gigony/05a05fd87d62a0fd47d99c47aaf5a050
Additional Information
I think this is the same issue with #41496.
This was working until the last version of v28, which is v28.3.3. However, since the first version of v29 (29.0.0), it hasn't behaved the same as v28.x.x.
v28.3.3
v31.x.x+
If I set pass-through with setIgnoreMouseEvents, mouse position capturing doesn't work regardless of transparent window or not.
v31.x.x+ (with setIgnoreMouseEvents)
Note that I am using X11 window system on Ubuntu 22.04.
That behavior change prevents from using the workaround method for 'Support click-through of transparency #1335' (#1335)
The text was updated successfully, but these errors were encountered: