From 16d9902770e550121da8b76616dc779431b5092f Mon Sep 17 00:00:00 2001 From: Victoria Brekenfeld Date: Mon, 9 Sep 2024 20:02:36 +0200 Subject: [PATCH] focus: Allow updating cursor to already focused window --- src/shell/focus/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell/focus/mod.rs b/src/shell/focus/mod.rs index 4adfd063..6592c030 100644 --- a/src/shell/focus/mod.rs +++ b/src/shell/focus/mod.rs @@ -228,7 +228,7 @@ fn update_focus_state( // update keyboard focus if let Some(keyboard) = seat.get_keyboard() { if should_update_cursor && state.common.config.cosmic_conf.cursor_follows_focus { - if ActiveFocus::get(seat).as_ref() != target && target.is_some() { + if target.is_some() { //need to borrow mutably for surface under let mut shell = state.common.shell.write().unwrap(); // get the top left corner of the target element