From 1e984fec05c7b63fa65a9b11b77a2c2f639bfc73 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Wed, 8 Aug 2018 21:45:58 +1000 Subject: Fix focus when clicking floating decorations It's not right for container_at_view to only return the swayc if a surface was clicked. --- sway/tree/container.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sway') diff --git a/sway/tree/container.c b/sway/tree/container.c index 4507655e..39df86a5 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -567,9 +567,8 @@ static struct sway_container *container_at_view(struct sway_container *swayc, *sx = _sx; *sy = _sy; *surface = _surface; - return swayc; } - return NULL; + return swayc; } /** -- cgit v1.2.3-54-g00ecf