mirror of
https://github.com/swaywm/sway.git
synced 2025-11-26 06:59:59 -05:00
Close popups when changing focus
Also reverts the send frame done changes from the previous commit.
This commit is contained in:
parent
de86d65627
commit
7a59508da4
6 changed files with 44 additions and 31 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue