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.
This commit is contained in:
Thayne McCombs 2020-03-01 00:16:32 -07:00
parent 3bb6cca045
commit 3648b6dea2

View file

@ -367,7 +367,7 @@ struct sway_container *container_at(struct sway_workspace *workspace,
// Focused view's popups // Focused view's popups
if (focus && focus->view) { if (focus && focus->view) {
c = surface_at_view(focus, lx, ly, surface, sx, sy); 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; return c;
} }
*surface = NULL; *surface = NULL;