chase: input inhibit removal

https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4440
This commit is contained in:
Consolatis 2024-03-19 00:32:47 +01:00 committed by Johan Malm
parent d1fbb3c7cc
commit 3e614814fe
6 changed files with 5 additions and 107 deletions

View file

@ -457,8 +457,7 @@ handle_compositor_keybindings(struct keyboard *keyboard,
if (event->state == WL_KEYBOARD_KEY_STATE_RELEASED) {
if (cur_keybind && cur_keybind->on_release) {
key_state_bound_key_remove(event->keycode);
if (seat->server->session_lock_manager->locked
|| seat->active_client_while_inhibited) {
if (seat->server->session_lock_manager->locked) {
cur_keybind = NULL;
return true;
}
@ -476,13 +475,10 @@ handle_compositor_keybindings(struct keyboard *keyboard,
}
/*
* Ignore labwc keybindings if input is inhibited
* Ignore labwc keybindings if the session is locked.
* It's important to do this after key_state_set_pressed() to ensure
* _all_ key press/releases are registered
*/
if (seat->active_client_while_inhibited) {
return false;
}
if (seat->server->session_lock_manager->locked) {
return false;
}