diff --git a/sway/input/seat.c b/sway/input/seat.c index 1b63f625..ec6aa8b2 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -1200,8 +1200,10 @@ static void seat_set_workspace_focus(struct sway_seat *seat, struct sway_node *n // emit ipc events set_workspace(seat, new_workspace); - if (container && container->view) { + if (container) { ipc_event_window(container, "focus"); + } else if(last_workspace == new_workspace) { + ipc_event_workspace(NULL, new_workspace, "focus"); } // Move sticky containers to new workspace