From 21e1e1d74b0c90f672d9d0bbd2d34df8bfdaa627 Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Wed, 23 Dec 2020 23:11:05 -0700 Subject: [PATCH] container: remove focused view check in coord lookup --- sway/tree/container.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/sway/tree/container.c b/sway/tree/container.c index 4c573e836..0b811063e 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -379,7 +379,6 @@ struct sway_container *container_at(struct sway_workspace *workspace, struct sway_seat *seat = input_manager_current_seat(); struct sway_container *focus = seat_get_focused_container(seat); - bool is_floating = focus && container_is_floating_or_child(focus); // Focused view's popups if (focus && focus->view) { c = surface_at_view(focus, lx, ly, surface, sx, sy); @@ -392,13 +391,7 @@ struct sway_container *container_at(struct sway_workspace *workspace, if ((c = floating_container_at(lx, ly, surface ,sx ,sy))) { return c; } - // Tiling (focused) - if (focus && focus->view && !is_floating) { - if ((c = surface_at_view(focus, lx, ly, surface, sx, sy))) { - return c; - } - } - // Tiling (non-focused) + // Tiling if ((c = tiling_container_at(&workspace->node, lx, ly, surface, sx, sy))) { return c; }