Incredibly strange wl_pointer enter events on layer shell surfaces #10820
Replies: 4 comments 2 replies
-
that is odd indeed. Can you post a link to the app for repro? |
Beta Was this translation helpful? Give feedback.
-
https://github.com/Mabi19/spaceshot The weird event also appears in the log for Occasionally my app will get the events in the reverse order, like slurp - that seems to suggest a race of some kind. Although this wouldn't be an issue without the weird second enter event anyway |
Beta Was this translation helpful? Give feedback.
-
I just tried it again out of curiosity and now I can reproduce it on slurp. Something's probably changed between 0.49 and 0.50 such that the race now ends badly for slurp as well. Running That second case is interesting, so here are the relevant events.
|
Beta Was this translation helpful? Give feedback.
-
sorry but WHAT THE FUCK
but after I toggle DPMS off and on, the order's like this:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not 100% sure if this is a bug, but it's really weird.
Hyprland version
0.49.0 (from the Arch Linux repos)
Regression
No, as far as I'm aware
Describe the bug
I'm making an app which works similarly to slurp, in that it spawns fullscreen layer shell surfaces on each output for selection. But I'm experiencing strange behavior with the wl_pointer.enter events I get initially (before moving the mouse).
For context, I have two monitors connected:
wl_pointer#20.enter(3006992, wl_surface#26, 2217.18750000, 1018.29687500)
This event is, as far as I can tell, perfectly normal (I have the pointer on monitor 0 at that position).wl_pointer#20.enter(3006997, wl_surface#34, -2902.80859375, 518.29687500)
. The coordinates are not only not inside the surface, but also at the wrong position relative to the monitor 1 surface - they should be at (-342, 768), and thus are offset by (2560, 250).Here's the full WAYLAND_DEBUG=1 log from my app:
wl-debug-pointer-events.log
Reproduction steps
I can also reproduce the weird enter event with
WAYLAND_DEBUG=1 slurp -o
with my two monitors connected, although slurp's functionality is unaffected because it gets the pointer events in the reverse order for some reason.System info and config
hyprland-sysinfo.txt
Beta Was this translation helpful? Give feedback.
All reactions