aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-03-02 23:17:46 -0500
committeremersion <contact@emersion.fr>2019-03-03 09:25:10 +0100
commit23f075e71d985754effde5372f4242ddb09cbbc0 (patch)
tree43592e8f340a5a10d5b7e0c66f36c478e8ee05c3 /sway/desktop
parent1c329f2fe6ae344b3201447a586f6c9a571d44ff (diff)
render_floating: skip fullscreen floaters
If a floater is fullscreen either on a workspace or globally, it should not be rendered on any output is is not fullscreened on. When rendering it on an output it should not be rendered on, there will be an extraneous border along the adjacent side of the output. This adds a check in render_floating to skip all fullscreened floaters
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 5df16075..4b36a9c2 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -944,6 +944,9 @@ static void render_floating(struct sway_output *soutput,
}
for (int k = 0; k < ws->current.floating->length; ++k) {
struct sway_container *floater = ws->current.floating->items[k];
+ if (floater->fullscreen_mode != FULLSCREEN_NONE) {
+ continue;
+ }
render_floating_container(soutput, damage, floater);
}
}