fix: follow the focus after alt+tab to another output

This commit is contained in:
Hojjat 2026-05-25 12:04:41 -06:00 committed by Jacob Kauffmann
parent 28ef6bdbc8
commit 56f84fba2d

View file

@ -111,10 +111,8 @@ impl ToplevelManagementHandler for State {
std::mem::drop(shell);
// move pointer to window if its 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();