summaryrefslogtreecommitdiff
path: root/sway/layout.c
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <[email protected]>2016-04-27 11:22:29 +0200
committerMikkel Oscar Lyderik <[email protected]>2016-04-27 11:24:28 +0200
commitddd5b69b998a8f413ad3b7ec5ff4d54221dfc0b6 (patch)
tree8e185c6a180f62ccf3a2fd55164a6b449bbceb1e /sway/layout.c
parent27066c6328fc80ef573bfb856f6df451cdd4262e (diff)
border: clear buffer on fullscreen views
This patch makes sure to clear the border buffer of fullscreen view so the border doesn't get drawn behind a fullscreen view, which would be visible if the view was transparent.
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c
index 3e550927..902a521b 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -555,6 +555,7 @@ void update_geometry(swayc_t *container) {
container->border_geometry = wlc_geometry_zero;
container->title_bar_geometry = wlc_geometry_zero;
+ border_clear(container->border);
} else if (container->is_floating) { // allocate border for floating window
update_border_geometry_floating(container, &geometry);
} else if (!container->is_floating) { // allocate border for titled window