summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2024-09-18 00:46:29 +0200
committerSimon Ser <contact@emersion.fr>2024-09-21 16:16:56 +0200
commit7f9baa05fa1e6c5677c88bc45da354bdeefcedd3 (patch)
treebf361c92ba82141a84ee2542d49a6947f63fa689 /include
parent5686be82c6b1c25e5c188ee05690edfe981ff9c0 (diff)
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. (cherry-picked from 785a459a55d8b55b4bed1fdc55b04c32be5b450c)
Diffstat (limited to 'include')
-rw-r--r--include/sway/lock.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/lock.h b/include/sway/lock.h
new file mode 100644
index 00000000..5be0f969
--- /dev/null
+++ b/include/sway/lock.h
@@ -0,0 +1,6 @@
+#ifndef _SWAY_LOCK_H
+#define _SWAY_LOCK_H
+
+void arrange_locks(void);
+
+#endif