session-lock: reconfigure for output layout changes

Currently, if the output layout changes while the session is locked,
the lock surfaces may end up wrongly positioned, which looks bad and
may reveal some of the user's workspace underneath.

To prevent this, re-align the scene trees and reconfigure the lock
surfaces when the output layout changes.
This commit is contained in:
John Lindgren 2023-10-04 23:54:27 -04:00 committed by Johan Malm
parent b7bd5a52e4
commit 00ce7a2b5e
3 changed files with 35 additions and 4 deletions

View file

@ -4,6 +4,9 @@
#include <wlr/types/wlr_session_lock_v1.h>
struct output;
struct server;
struct session_lock {
struct wlr_session_lock_v1 *lock;
struct wlr_surface *focused;
@ -18,5 +21,6 @@ struct session_lock {
void session_lock_init(struct server *server);
void session_lock_output_create(struct session_lock *lock, struct output *output);
void session_lock_update_for_layout_change(void);
#endif /* LABWC_SESSION_LOCK_H */