diff options
author | Brian Ashworth <RedSoxFan@users.noreply.github.com> | 2018-07-19 19:52:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-19 19:52:58 -0400 |
commit | 0a0b676f6457c0272264e9f0e9435a15b50d999b (patch) | |
tree | 88272206e1306066784dc4211e31710ad88e7440 /sway/tree | |
parent | d28c4c00941b9140deb22a091f0e70cbf2a49325 (diff) | |
parent | 8789ceea87e700de991c9d273fa419b6d38b0768 (diff) |
Merge pull request #2316 from RyanDwyer/fix-floating-pointer-events
Fix pointer events for overlapping floating views
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/container.c | 4 |
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, if (!workspace_is_visible(workspace)) { continue; } - for (int k = 0; k < ws->floating->children->length; ++k) { + // Items at the end of the list are on top, so iterate the list in + // reverse. + for (int k = ws->floating->children->length - 1; k >= 0; --k) { struct sway_container *floater = ws->floating->children->items[k]; struct wlr_box box = { |