mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
Prevent key release bindings running when session locked
This commit is contained in:
parent
8c6379cb59
commit
522897d5af
1 changed files with 5 additions and 0 deletions
|
|
@ -410,6 +410,11 @@ handle_compositor_keybindings(struct keyboard *keyboard,
|
||||||
|
|
||||||
if (event->state == WL_KEYBOARD_KEY_STATE_RELEASED) {
|
if (event->state == WL_KEYBOARD_KEY_STATE_RELEASED) {
|
||||||
if (cur_keybind && cur_keybind->mod_only) {
|
if (cur_keybind && cur_keybind->mod_only) {
|
||||||
|
if (seat->active_client_while_inhibited
|
||||||
|
|| seat->server->session_lock) {
|
||||||
|
cur_keybind = NULL;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
key_state_store_pressed_key_as_bound(event->keycode);
|
key_state_store_pressed_key_as_bound(event->keycode);
|
||||||
actions_run(NULL, server, &cur_keybind->actions, 0);
|
actions_run(NULL, server, &cur_keybind->actions, 0);
|
||||||
cur_keybind = NULL;
|
cur_keybind = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue