Close popups when changing focus

Also reverts the send frame done changes from the previous commit.
This commit is contained in:
Ryan Dwyer 2018-07-31 19:58:34 +10:00
parent de86d65627
commit 7a59508da4
6 changed files with 44 additions and 31 deletions

View file

@ -737,6 +737,13 @@ void seat_set_focus_warp(struct sway_seat *seat,
}
}
// Close any popups on the old focus
if (last_focus && last_focus != container) {
if (last_focus->type == C_VIEW) {
view_close_popups(last_focus->sway_view);
}
}
if (last_focus) {
if (last_workspace) {
ipc_event_workspace(last_workspace, container, "focus");