mirror of
https://github.com/labwc/labwc.git
synced 2026-02-12 04:27:57 -05:00
chase: input inhibit removal
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4440
This commit is contained in:
parent
d1fbb3c7cc
commit
3e614814fe
6 changed files with 5 additions and 107 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue