mirror of
https://github.com/labwc/labwc.git
synced 2026-02-18 22:05:32 -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
|
|
@ -314,7 +314,7 @@ struct server {
|
|||
struct wlr_gamma_control_manager_v1 *gamma_control_manager_v1;
|
||||
struct wl_listener gamma_control_set_gamma;
|
||||
|
||||
struct session_lock *session_lock;
|
||||
struct session_lock_manager *session_lock_manager;
|
||||
|
||||
struct wlr_foreign_toplevel_manager_v1 *foreign_toplevel_manager;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue