aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-03-02 23:17:46 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-03-04 12:50:47 -0500
commit9dafaa87ce8ed4a2508fe428537a4e9c1323bdc2 (patch)
tree6049c444bdb0d4058c07779dfa19d63efbac8057
parentFixes crash in spawn_swaybg (closes #3733) (diff)
downloadsway-9dafaa87ce8ed4a2508fe428537a4e9c1323bdc2.tar.gz
sway-9dafaa87ce8ed4a2508fe428537a4e9c1323bdc2.tar.zst
sway-9dafaa87ce8ed4a2508fe428537a4e9c1323bdc2.zip
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,
936 } 936 }
937 for (int k = 0; k < ws->current.floating->length; ++k) { 937 for (int k = 0; k < ws->current.floating->length; ++k) {
938 struct sway_container *floater = ws->current.floating->items[k]; 938 struct sway_container *floater = ws->current.floating->items[k];
939 if (floater->fullscreen_mode != FULLSCREEN_NONE) {
940 continue;
941 }
939 render_floating_container(soutput, damage, floater); 942 render_floating_container(soutput, damage, floater);
940 } 943 }
941 } 944 }