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 | Merge pull request #2420 from RyanDwyer/floating-move-to-workspace (diff) | |
download | sway-1e984fec05c7b63fa65a9b11b77a2c2f639bfc73.tar.gz sway-1e984fec05c7b63fa65a9b11b77a2c2f639bfc73.tar.zst sway-1e984fec05c7b63fa65a9b11b77a2c2f639bfc73.zip |
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, | |||
567 | *sx = _sx; | 567 | *sx = _sx; |
568 | *sy = _sy; | 568 | *sy = _sy; |
569 | *surface = _surface; | 569 | *surface = _surface; |
570 | return swayc; | ||
571 | } | 570 | } |
572 | return NULL; | 571 | return swayc; |
573 | } | 572 | } |
574 | 573 | ||
575 | /** | 574 | /** |