From 899462b103088e62a40d963baebc63cb9520e30d Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 11 Oct 2026 09:18:28 +0300 Subject: [PATCH] input: Prevent Mod+MMB gesture in screenshot UI and lock --- src/input/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/input/mod.rs b/src/input/mod.rs index 28d053be..5cd18974 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -2884,7 +2884,12 @@ impl State { } } - if button == Some(MouseButton::Middle) && !pointer.is_grabbed() && mod_down { + if button == Some(MouseButton::Middle) + && !pointer.is_grabbed() + && mod_down + && !self.niri.is_locked() + && !self.niri.screenshot_ui.is_open() + { let output_ws = if is_overview_open { self.niri.workspace_under_cursor(true) } else {