aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-01-13 08:16:30 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-01-13 08:17:53 +0400
commit80652a076510b7062866b824fb5440f712c986de (patch)
treeaed4affde3fdf56fe576e87838eb782c396929be /src
parenta52bf92ae1d5a9a8752784419f61c3ea5ed93172 (diff)
downloadniri-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.rs2
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);