mirror of
https://github.com/swaywm/sway.git
synced 2025-04-03 02:47:46 +03:00
ext-session-lock: Do not use commit listener to arrange
Arranging lock surfaces rely on the sway_output width and height being updated, but these are only updated after the commit has been completed and all commit listeners have executed. This means that the lock surfaces will not be appropriately scaled to match a change in output dimensions, and may reveal what is under the lock background. Replace the implicit arrange through the output commit listener with an explicit arrange after the output configuration is finalized. This might have regressed by other transition away from output commit listeners for other arrange tasks, but even then it would have erroneously relied on signalling order.
This commit is contained in:
parent
f957c7e658
commit
785a459a55
3 changed files with 20 additions and 17 deletions
6
include/sway/lock.h
Normal file
6
include/sway/lock.h
Normal file
|
@ -0,0 +1,6 @@
|
|||
#ifndef _SWAY_LOCK_H
|
||||
#define _SWAY_LOCK_H
|
||||
|
||||
void arrange_locks(void);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue