aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-03-02 23:17:46 -0500
committerFurkan Sahin <furkan-dev@proton.me>2019-03-02 23:17:46 -0500
commit9e1779b0de119bdf657efff282d0ed62800199b6 (patch)
tree6049c444bdb0d4058c07779dfa19d63efbac8057
parent6d1d8ef7b3b6de19556542e584de172cecc55ec1 (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
-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 92e623ef..1dd21fa3 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -936,6 +936,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);
}
}