From 80652a076510b7062866b824fb5440f712c986de Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sat, 13 Jan 2024 08:16:30 +0400 Subject: Remove is_grabbed check for changing active window When clicking outside of the popup grab, the click does go through if the popup is dismissed. This makes the active window change go through too. --- src/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/input.rs b/src/input.rs index c83ebfac..6ba3b196 100644 --- a/src/input.rs +++ b/src/input.rs @@ -806,7 +806,7 @@ impl State { let button_state = event.state(); - if ButtonState::Pressed == button_state && !pointer.is_grabbed() { + if ButtonState::Pressed == button_state { if let Some(window) = self.niri.window_under_cursor() { let window = window.clone(); self.niri.layout.activate_window(&window); -- cgit