From 56f84fba2dc0ff7de191e48e56f29d92ba50e668 Mon Sep 17 00:00:00 2001 From: Hojjat Date: Mon, 25 May 2026 12:04:41 -0600 Subject: [PATCH] fix: follow the focus after alt+tab to another output --- src/wayland/handlers/toplevel_management.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/wayland/handlers/toplevel_management.rs b/src/wayland/handlers/toplevel_management.rs index 3da39952..2b1232d5 100644 --- a/src/wayland/handlers/toplevel_management.rs +++ b/src/wayland/handlers/toplevel_management.rs @@ -111,10 +111,8 @@ impl ToplevelManagementHandler for State { std::mem::drop(shell); // move pointer to window if it’s on a different monitor/output - if seat.active_output() != *output - && self.common.config.cosmic_conf.cursor_follows_focus - && let Some(new_pos) = new_pos - { + let switching_output = seat.active_output() != *output; + if switching_output && let Some(new_pos) = new_pos { seat.set_active_output(output); if let Some(ptr) = seat.get_pointer() { let serial = SERIAL_COUNTER.next_serial();