From 4cf319c09cb52b65368eafdd02b01bdedf9b14b2 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 10 Jul 2025 15:20:24 -0700 Subject: [PATCH] input/actions: Change `focus_follows_cursor` to `cursor_follows_focus` This caused confusing behavior when "focus follows cursor" was enabled, but "cursor follows focus" was not. `update_focus_state` only updates the cursor position if `cursor_follows_focus` is set, so this wasn't actually moving the pointer when expected. I presume this was a mistake, and `cursor_follows_focus` was intended here. --- src/input/actions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/actions.rs b/src/input/actions.rs index 7a693dd5..5e6bd67d 100644 --- a/src/input/actions.rs +++ b/src/input/actions.rs @@ -550,7 +550,7 @@ impl State { std::mem::drop(shell); let move_cursor = if let Some(under) = new_target { - let update_cursor = self.common.config.cosmic_conf.focus_follows_cursor; + let update_cursor = self.common.config.cosmic_conf.cursor_follows_focus; Shell::set_focus(self, Some(&under), seat, None, update_cursor); !update_cursor } else {