aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-31 19:58:34 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-07-31 19:58:34 +1000
commit7a59508da467a3b793e355e28ae67ce04633761c (patch)
tree0f72b5b1804f6f6afa3b2317a4d9e3cc402fda9a /sway/tree/view.c
parentFix popups (diff)
downloadsway-7a59508da467a3b793e355e28ae67ce04633761c.tar.gz
sway-7a59508da467a3b793e355e28ae67ce04633761c.tar.zst
sway-7a59508da467a3b793e355e28ae67ce04633761c.zip
Close popups when changing focus
Also reverts the send frame done changes from the previous commit.
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index c1207821..5d9b625f 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -302,6 +302,12 @@ void view_close(struct sway_view *view) {
302 } 302 }
303} 303}
304 304
305void view_close_popups(struct sway_view *view) {
306 if (view->impl->close_popups) {
307 view->impl->close_popups(view);
308 }
309}
310
305void view_damage_from(struct sway_view *view) { 311void view_damage_from(struct sway_view *view) {
306 for (int i = 0; i < root_container.children->length; ++i) { 312 for (int i = 0; i < root_container.children->length; ++i) {
307 struct sway_container *cont = root_container.children->items[i]; 313 struct sway_container *cont = root_container.children->items[i];