mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
When `wlr_seat_pointer_notify_button()` is called on a button press event, that funtion must also be called on the subsequent button release event because otherwise wlroots thinks the button is kept pressed and it causes issues with validating DnD requests from clients, where only one button must be pressed. This was the case when a CSD client opens a client-menu via `show_window_menu` request after pressing its window with the right button because we were always not notifying button release events while a menu is open. So let's keep track of bound (pressed but not notified) buttons and notify button release events only when the button is not bound, like we are doing for key-state. |
||
|---|---|---|
| .. | ||
| cursor.c | ||
| gestures.c | ||
| ime.c | ||
| input.c | ||
| key-state.c | ||
| keyboard.c | ||
| meson.build | ||
| tablet-pad.c | ||
| tablet-tool.c | ||
| tablet.c | ||
| touch.c | ||