diff options
-rw-r--r-- | sway/tree/container.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 56cdee1d..afb0f927 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -208,7 +208,8 @@ static struct sway_container *container_at_tabbed(struct sway_node *parent, | |||
208 | struct wlr_surface **surface, double *sx, double *sy) { | 208 | struct wlr_surface **surface, double *sx, double *sy) { |
209 | struct wlr_box box; | 209 | struct wlr_box box; |
210 | node_get_box(parent, &box); | 210 | node_get_box(parent, &box); |
211 | if (ly < box.y || ly > box.y + box.height) { | 211 | if (lx < box.x || lx > box.x + box.width || |
212 | ly < box.y || ly > box.y + box.height) { | ||
212 | return NULL; | 213 | return NULL; |
213 | } | 214 | } |
214 | struct sway_seat *seat = input_manager_current_seat(); | 215 | struct sway_seat *seat = input_manager_current_seat(); |
@@ -242,7 +243,8 @@ static struct sway_container *container_at_stacked(struct sway_node *parent, | |||
242 | struct wlr_surface **surface, double *sx, double *sy) { | 243 | struct wlr_surface **surface, double *sx, double *sy) { |
243 | struct wlr_box box; | 244 | struct wlr_box box; |
244 | node_get_box(parent, &box); | 245 | node_get_box(parent, &box); |
245 | if (ly < box.y || ly > box.y + box.height) { | 246 | if (lx < box.x || lx > box.x + box.width || |
247 | ly < box.y || ly > box.y + box.height) { | ||
246 | return NULL; | 248 | return NULL; |
247 | } | 249 | } |
248 | struct sway_seat *seat = input_manager_current_seat(); | 250 | struct sway_seat *seat = input_manager_current_seat(); |