diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-31 19:58:34 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-07-31 19:58:34 +1000 |
commit | 7a59508da467a3b793e355e28ae67ce04633761c (patch) | |
tree | 0f72b5b1804f6f6afa3b2317a4d9e3cc402fda9a /sway/tree | |
parent | Fix popups (diff) | |
download | sway-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')
-rw-r--r-- | sway/tree/view.c | 6 |
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 | ||
305 | void view_close_popups(struct sway_view *view) { | ||
306 | if (view->impl->close_popups) { | ||
307 | view->impl->close_popups(view); | ||
308 | } | ||
309 | } | ||
310 | |||
305 | void view_damage_from(struct sway_view *view) { | 311 | void 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]; |