diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-13 08:16:30 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-01-13 08:17:53 +0400 |
| commit | 80652a076510b7062866b824fb5440f712c986de (patch) | |
| tree | aed4affde3fdf56fe576e87838eb782c396929be /src | |
| parent | a52bf92ae1d5a9a8752784419f61c3ea5ed93172 (diff) | |
| download | niri-80652a076510b7062866b824fb5440f712c986de.tar.gz niri-80652a076510b7062866b824fb5440f712c986de.tar.bz2 niri-80652a076510b7062866b824fb5440f712c986de.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/input.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
