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/input/seat.c | |
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/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 53a92989..8ed0dce2 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -737,6 +737,13 @@ void seat_set_focus_warp(struct sway_seat *seat, | |||
737 | } | 737 | } |
738 | } | 738 | } |
739 | 739 | ||
740 | // Close any popups on the old focus | ||
741 | if (last_focus && last_focus != container) { | ||
742 | if (last_focus->type == C_VIEW) { | ||
743 | view_close_popups(last_focus->sway_view); | ||
744 | } | ||
745 | } | ||
746 | |||
740 | if (last_focus) { | 747 | if (last_focus) { |
741 | if (last_workspace) { | 748 | if (last_workspace) { |
742 | ipc_event_workspace(last_workspace, container, "focus"); | 749 | ipc_event_workspace(last_workspace, container, "focus"); |