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 /include | |
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 'include')
-rw-r--r-- | include/sway/tree/view.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 9f6d36fe..e722ca5e 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -50,6 +50,7 @@ struct sway_view_impl { | |||
50 | void (*for_each_popup)(struct sway_view *view, | 50 | void (*for_each_popup)(struct sway_view *view, |
51 | wlr_surface_iterator_func_t iterator, void *user_data); | 51 | wlr_surface_iterator_func_t iterator, void *user_data); |
52 | void (*close)(struct sway_view *view); | 52 | void (*close)(struct sway_view *view); |
53 | void (*close_popups)(struct sway_view *view); | ||
53 | void (*destroy)(struct sway_view *view); | 54 | void (*destroy)(struct sway_view *view); |
54 | }; | 55 | }; |
55 | 56 | ||
@@ -248,6 +249,8 @@ void view_set_tiled(struct sway_view *view, bool tiled); | |||
248 | 249 | ||
249 | void view_close(struct sway_view *view); | 250 | void view_close(struct sway_view *view); |
250 | 251 | ||
252 | void view_close_popups(struct sway_view *view); | ||
253 | |||
251 | void view_damage_from(struct sway_view *view); | 254 | void view_damage_from(struct sway_view *view); |
252 | 255 | ||
253 | /** | 256 | /** |