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

This reverts commit 56f84fba2d.
This commit is contained in:
Hojjat Abdollahi 2026-07-02 09:53:03 -06:00 committed by GitHub
parent f5e0ba1594
commit 9d52653d5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,8 +111,10 @@ impl ToplevelManagementHandler for State {
std::mem::drop(shell);
// move pointer to window if its on a different monitor/output
let switching_output = seat.active_output() != *output;
if switching_output && let Some(new_pos) = new_pos {
if seat.active_output() != *output
&& self.common.config.cosmic_conf.cursor_follows_focus
&& let Some(new_pos) = new_pos
{
seat.set_active_output(output);
if let Some(ptr) = seat.get_pointer() {
let serial = SERIAL_COUNTER.next_serial();