summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-08 21:45:58 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-08 22:28:13 +1000
commit1e984fec05c7b63fa65a9b11b77a2c2f639bfc73 (patch)
tree7356b1eeac12b8ac42e636b935fea177cda14bed /sway
parentMerge pull request #2420 from RyanDwyer/floating-move-to-workspace (diff)
downloadsway-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.
Diffstat (limited to 'sway')
-rw-r--r--sway/tree/container.c3
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/**