This commit is contained in:
Tim Hallmann 2025-09-17 02:49:18 -07:00 committed by GitHub
commit 06b97222d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1200,8 +1200,10 @@ static void seat_set_workspace_focus(struct sway_seat *seat, struct sway_node *n
// emit ipc events // emit ipc events
set_workspace(seat, new_workspace); set_workspace(seat, new_workspace);
if (container && container->view) { if (container) {
ipc_event_window(container, "focus"); ipc_event_window(container, "focus");
} else if(last_workspace == new_workspace) {
ipc_event_workspace(NULL, new_workspace, "focus");
} }
// Move sticky containers to new workspace // Move sticky containers to new workspace