From 3648b6dea2ff6eeb8ac3a2e8e629645595bc3037 Mon Sep 17 00:00:00 2001 From: Thayne McCombs Date: Sun, 1 Mar 2020 00:16:32 -0700 Subject: [PATCH] Allow input on subsurfaces extending beyond border for focused views If a focused view has a subsurface that extends beyond the bounding box of the floating container, make sure that surface has an opportunity to capture input events. This is similar to what is already done for tiling containers. --- sway/tree/container.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/tree/container.c b/sway/tree/container.c index afb0f9272..1e35af0cf 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -367,7 +367,7 @@ struct sway_container *container_at(struct sway_workspace *workspace, // Focused view's popups if (focus && focus->view) { c = surface_at_view(focus, lx, ly, surface, sx, sy); - if (c && surface_is_popup(*surface)) { + if (c && (is_floating || surface_is_popup(*surface))) { return c; } *surface = NULL;