aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-08-08 21:45:58 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-08-08 22:28:13 +1000
commit1e984fec05c7b63fa65a9b11b77a2c2f639bfc73 (patch)
tree7356b1eeac12b8ac42e636b935fea177cda14bed
parentc8a8216629cd56a510255f6ead3eaba9508b6544 (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.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,
*sx = _sx;
*sy = _sy;
*surface = _surface;
- return swayc;
}
- return NULL;
+ return swayc;
}
/**