mirror of
https://github.com/swaywm/sway.git
synced 2025-11-26 06:59:59 -05:00
ipc: fix workspace::focus event behaviour
This commit is contained in:
parent
3edaf2ce2a
commit
b2ac234569
2 changed files with 4 additions and 2 deletions
|
|
@ -739,7 +739,9 @@ void seat_set_focus_warp(struct sway_seat *seat,
|
|||
|
||||
if (last_focus) {
|
||||
if (last_workspace) {
|
||||
ipc_event_workspace(last_workspace, container, "focus");
|
||||
if (last_workspace != new_workspace) {
|
||||
ipc_event_workspace(last_workspace, new_workspace, "focus");
|
||||
}
|
||||
if (!workspace_is_visible(last_workspace)
|
||||
&& workspace_is_empty(last_workspace)) {
|
||||
if (last_workspace == last_focus) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue