aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-20 09:41:36 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-20 09:41:36 +1000
commit8789ceea87e700de991c9d273fa419b6d38b0768 (patch)
tree88272206e1306066784dc4211e31710ad88e7440 /sway/tree/container.c
parentMerge pull request #2314 from emersion/update-wlroots-1148 (diff)
downloadsway-8789ceea87e700de991c9d273fa419b6d38b0768.tar.gz
sway-8789ceea87e700de991c9d273fa419b6d38b0768.tar.zst
sway-8789ceea87e700de991c9d273fa419b6d38b0768.zip
Fix pointer events for overlapping floating views
Fixes #2315.
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 02384199..4dbfbb29 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -660,7 +660,9 @@ struct sway_container *floating_container_at(double lx, double ly,
660 if (!workspace_is_visible(workspace)) { 660 if (!workspace_is_visible(workspace)) {
661 continue; 661 continue;
662 } 662 }
663 for (int k = 0; k < ws->floating->children->length; ++k) { 663 // Items at the end of the list are on top, so iterate the list in
664 // reverse.
665 for (int k = ws->floating->children->length - 1; k >= 0; --k) {
664 struct sway_container *floater = 666 struct sway_container *floater =
665 ws->floating->children->items[k]; 667 ws->floating->children->items[k];
666 struct wlr_box box = { 668 struct wlr_box box = {