forge
Explore
Log in

Don't you dare go Hollow

Don't block pointer focus refresh on transitions during lock

Browse files at this commit

76db55c38cef0a0d437a6d2add5c18272128113bIvan MolodetskikhParent: 2ca9f3f
src/niri.rsmodified+7 -5
@@ -310,11 +310,13 @@ impl State {
310 let pointer = &self.niri.seat.get_pointer().unwrap();310 let pointer = &self.niri.seat.get_pointer().unwrap();
311 let location = pointer.current_location();311 let location = pointer.current_location();
312 312
313- // Don't refresh cursor focus during transitions.313+ if !self.niri.is_locked() {
314- if let Some((output, _)) = self.niri.output_under(location) {314+ // Don't refresh cursor focus during transitions.
315- let monitor = self.niri.layout.monitor_for_output(output).unwrap();315+ if let Some((output, _)) = self.niri.output_under(location) {
316- if monitor.are_transitions_ongoing() {316+ let monitor = self.niri.layout.monitor_for_output(output).unwrap();
317- return;317+ if monitor.are_transitions_ongoing() {
318+ return;
319+ }
318 }320 }
319 }321 }
320 322