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

@ -272,6 +272,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();
/*
* "Move" each wlr_output_cursor (in per-output coordinates) to