diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-08 21:45:58 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-08-08 22:28:13 +1000 |
commit | 1e984fec05c7b63fa65a9b11b77a2c2f639bfc73 (patch) | |
tree | 7356b1eeac12b8ac42e636b935fea177cda14bed | |
parent | c8a8216629cd56a510255f6ead3eaba9508b6544 (diff) |
Fix focus when clicking floating decorations
It's not right for container_at_view to only return the swayc if a
surface was clicked.
-rw-r--r-- | sway/tree/container.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } /** |