mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 10:29:49 +01:00
f4ae9824f7
Layer surfaces are not notified of cursor position changes if the surface moves, only if the cursor moves. This workaround emits a cursor position event every time a cursor ends up over a newly resized layer surface to make sure the following clicks land in the right place. This change doesn't address sending leave events when a cursor previously present over the surface becomes away. There are 2 separate mechanisms in play, because a layer surface gets resized in 2 steps: 1. Layer surface resize & rearrange. 2. Underlying surface resize. The first step may affect all layer surfaces. The cursor events are sent to cursors placed over all layer surfaces which have moved (not been resized). The second step affects any layer surface whose surface changed size. The cursor event is sent only to that surface. Together, these events cover all surfaces: those which moves, and those which changed size, as long as each layer surface resize is accompanied by an immediate surface resize. |
||
---|---|---|
.. | ||
config.c | ||
cursor.c | ||
desktop.c | ||
ini.c | ||
input.c | ||
keyboard.c | ||
layer_shell.c | ||
main.c | ||
meson.build | ||
output.c | ||
rootston.ini.example | ||
seat.c | ||
virtual_keyboard.c | ||
wl_shell.c | ||
xdg_shell.c | ||
xdg_shell_v6.c | ||
xwayland.c |