Made it so changing focus to different monitor takes cursor_follows_focus into consideration

This commit is contained in:
Jakob 2026-01-30 18:22:55 +01:00 committed by Victoria Brekenfeld
parent 3414579256
commit c1de9b2f1a

View file

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