mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
Merge pull request #2316 from RyanDwyer/fix-floating-pointer-events
Fix pointer events for overlapping floating views
This commit is contained in:
commit
0a0b676f64
@ -660,7 +660,9 @@ struct sway_container *floating_container_at(double lx, double ly,
|
|||||||
if (!workspace_is_visible(workspace)) {
|
if (!workspace_is_visible(workspace)) {
|
||||||
continue;
|
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 =
|
struct sway_container *floater =
|
||||||
ws->floating->children->items[k];
|
ws->floating->children->items[k];
|
||||||
struct wlr_box box = {
|
struct wlr_box box = {
|
||||||
|
Loading…
Reference in New Issue
Block a user