Skip to content

Commit 4cf319c

Browse files
ids1024Drakulix
authored andcommitted
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.
1 parent 3debae2 commit 4cf319c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/input/actions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ impl State {
550550
std::mem::drop(shell);
551551

552552
let move_cursor = if let Some(under) = new_target {
553-
let update_cursor = self.common.config.cosmic_conf.focus_follows_cursor;
553+
let update_cursor = self.common.config.cosmic_conf.cursor_follows_focus;
554554
Shell::set_focus(self, Some(&under), seat, None, update_cursor);
555555
!update_cursor
556556
} else {

0 commit comments

Comments
 (0)