mirror of
https://github.com/labwc/labwc.git
synced 2026-02-15 22:05:25 -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
|
|
@ -395,8 +395,8 @@ new_output_notify(struct wl_listener *listener, void *data)
|
|||
/* Create regions from config */
|
||||
regions_reconfigure_output(output);
|
||||
|
||||
if (server->session_lock) {
|
||||
session_lock_output_create(server->session_lock, output);
|
||||
if (server->session_lock_manager->locked) {
|
||||
session_lock_output_create(server->session_lock_manager, output);
|
||||
}
|
||||
|
||||
server->pending_output_layout_change--;
|
||||
|
|
@ -442,7 +442,7 @@ static void
|
|||
output_update_for_layout_change(struct server *server)
|
||||
{
|
||||
output_update_all_usable_areas(server, /*layout_changed*/ true);
|
||||
session_lock_update_for_layout_change();
|
||||
session_lock_update_for_layout_change(server);
|
||||
|
||||
/*
|
||||
* "Move" each wlr_output_cursor (in per-output coordinates) to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue