aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-26 16:30:18 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-06-01 23:14:58 +1000
commit3281574fa3199d649401e69e3d41493957b7d690 (patch)
tree20b2b5d951b0dc8d2415193587f352ade52fbb2f /sway/desktop/output.c
parentRender floating views before top layer and unmanaged (diff)
downloadsway-3281574fa3199d649401e69e3d41493957b7d690.tar.gz
sway-3281574fa3199d649401e69e3d41493957b7d690.tar.zst
sway-3281574fa3199d649401e69e3d41493957b7d690.zip
Remove check for if floating view intersects output
Diffstat (limited to 'sway/desktop/output.c')
-rw-r--r--sway/desktop/output.c16
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,
767 } 767 }
768} 768}
769 769
770static bool floater_intersects_output(struct sway_container *floater,
771 struct sway_container *output) {
772 struct wlr_box box = {
773 .x = floater->x,
774 .y = floater->y,
775 .width = floater->width,
776 .height = floater->height,
777 };
778 return wlr_output_layout_intersects(root_container.sway_root->output_layout,
779 output->sway_output->wlr_output, &box);
780}
781
782static void render_floating_container(struct sway_output *soutput, 770static void render_floating_container(struct sway_output *soutput,
783 pixman_region32_t *damage, struct sway_container *con) { 771 pixman_region32_t *damage, struct sway_container *con) {
784 if (con->type == C_VIEW) { 772 if (con->type == C_VIEW) {
@@ -824,9 +812,7 @@ static void render_floating(struct sway_output *soutput,
824 for (int k = 0; k < ws->floating->children->length; ++k) { 812 for (int k = 0; k < ws->floating->children->length; ++k) {
825 struct sway_container *floater = 813 struct sway_container *floater =
826 ws->floating->children->items[k]; 814 ws->floating->children->items[k];
827 if (floater_intersects_output(floater, soutput->swayc)) { 815 render_floating_container(soutput, damage, floater);
828 render_floating_container(soutput, damage, floater);
829 }
830 } 816 }
831 } 817 }
832 } 818 }