mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
keyboard: add keyboard_get_all_modifiers()
And make mousebind handlers use that one. Also remove keyboard_any_modifiers_pressed() and replace its usage with the new function. Without this patch we would only request the modifier state of the keyboard group which makes mousebinds involving keyboard modifiers break for virtual keyboards like when using wayvnc. Same story for hiding the workspace overlay or snapping to regions. Fixes: #2511
This commit is contained in:
parent
577c24306f
commit
0627190060
6 changed files with 31 additions and 26 deletions
|
|
@ -287,8 +287,7 @@ _osd_show(struct server *server)
|
|||
wlr_scene_node_set_enabled(&output->workspace_osd->node, true);
|
||||
}
|
||||
}
|
||||
struct wlr_keyboard *keyboard = &server->seat.keyboard_group->keyboard;
|
||||
if (keyboard_any_modifiers_pressed(keyboard)) {
|
||||
if (keyboard_get_all_modifiers(&server->seat)) {
|
||||
/* Hidden by release of all modifiers */
|
||||
server->seat.workspace_osd_shown_by_modifier = true;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue