mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +07:00
Don't block pointer focus refresh on transitions during lock
This commit is contained in:
@@ -310,6 +310,7 @@ impl State {
|
||||
let pointer = &self.niri.seat.get_pointer().unwrap();
|
||||
let location = pointer.current_location();
|
||||
|
||||
if !self.niri.is_locked() {
|
||||
// Don't refresh cursor focus during transitions.
|
||||
if let Some((output, _)) = self.niri.output_under(location) {
|
||||
let monitor = self.niri.layout.monitor_for_output(output).unwrap();
|
||||
@@ -317,6 +318,7 @@ impl State {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if !self.update_pointer_focus() {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user