mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
Fix input for floating containers
This commit is contained in:
parent
4afa18a0c0
commit
df20ecdf6d
1 changed files with 4 additions and 8 deletions
|
|
@ -660,14 +660,10 @@ struct sway_container *floating_container_at(double lx, double ly,
|
||||||
for (int k = 0; k < ws->floating->children->length; ++k) {
|
for (int k = 0; k < ws->floating->children->length; ++k) {
|
||||||
struct sway_container *floater =
|
struct sway_container *floater =
|
||||||
ws->floating->children->items[k];
|
ws->floating->children->items[k];
|
||||||
struct wlr_box box = {
|
struct sway_container *at =
|
||||||
.x = floater->x,
|
container_at(floater, lx, ly, surface, sx, sy);
|
||||||
.y = floater->y,
|
if (at != NULL) {
|
||||||
.width = floater->width,
|
return at;
|
||||||
.height = floater->height,
|
|
||||||
};
|
|
||||||
if (wlr_box_contains_point(&box, lx, ly)) {
|
|
||||||
return container_at(floater, lx, ly, surface, sx, sy);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue