mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
session-lock: refactor
- Replaced `session_lock` with `session_lock_manager` which is persistent throughout the session. - Replaced `session_lock->abandoned` with `session_lock_manager->locked`. Old `session_lock->abandoned` is equal to `!session_lock_manager->lock && session_lock_manager->locked`. - Eliminated the use of global variables in `session-lock.c`. - Changed some function names.
This commit is contained in:
parent
65f7499f1c
commit
a39c8afc10
6 changed files with 111 additions and 110 deletions
|
|
@ -424,7 +424,7 @@ handle_compositor_keybindings(struct keyboard *keyboard,
|
|||
if (seat->active_client_while_inhibited) {
|
||||
return false;
|
||||
}
|
||||
if (seat->server->session_lock) {
|
||||
if (seat->server->session_lock_manager->locked) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue