mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
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
This commit is contained in:
parent
4c2d36d730
commit
9dafaa87ce
@ -936,6 +936,9 @@ static void render_floating(struct sway_output *soutput,
|
|||||||
}
|
}
|
||||||
for (int k = 0; k < ws->current.floating->length; ++k) {
|
for (int k = 0; k < ws->current.floating->length; ++k) {
|
||||||
struct sway_container *floater = ws->current.floating->items[k];
|
struct sway_container *floater = ws->current.floating->items[k];
|
||||||
|
if (floater->fullscreen_mode != FULLSCREEN_NONE) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
render_floating_container(soutput, damage, floater);
|
render_floating_container(soutput, damage, floater);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user