diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-26 16:30:18 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-06-01 23:14:58 +1000 |
commit | 3281574fa3199d649401e69e3d41493957b7d690 (patch) | |
tree | 20b2b5d951b0dc8d2415193587f352ade52fbb2f /sway/desktop | |
parent | 7d2b33a4589df5cd130936fcb2016fda4014123b (diff) | |
download | sway-3281574fa3199d649401e69e3d41493957b7d690.tar.xz |
Remove check for if floating view intersects output
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/output.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 3dd10ac2..f58c5332 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -767,18 +767,6 @@ static void render_container(struct sway_output *output, } } -static bool floater_intersects_output(struct sway_container *floater, - struct sway_container *output) { - struct wlr_box box = { - .x = floater->x, - .y = floater->y, - .width = floater->width, - .height = floater->height, - }; - return wlr_output_layout_intersects(root_container.sway_root->output_layout, - output->sway_output->wlr_output, &box); -} - static void render_floating_container(struct sway_output *soutput, pixman_region32_t *damage, struct sway_container *con) { if (con->type == C_VIEW) { @@ -824,9 +812,7 @@ static void render_floating(struct sway_output *soutput, for (int k = 0; k < ws->floating->children->length; ++k) { struct sway_container *floater = ws->floating->children->items[k]; - if (floater_intersects_output(floater, soutput->swayc)) { - render_floating_container(soutput, damage, floater); - } + render_floating_container(soutput, damage, floater); } } } |