input: Prevent Mod+MMB gesture in screenshot UI and lock
Browse files at this commit899462b103088e62a40d963baebc63cb9520e30dParent: 2b0cb061 changed file +6 -1
- src/input/mod.rs +6 -1
src/input/mod.rsmodified+6 -1
| @@ -2884,7 +2884,12 @@ impl State { | |||
| 2884 | } | 2884 | } |
| 2885 | } | 2885 | } |
| 2886 | 2886 | ||
| 2887 | - if button == Some(MouseButton::Middle) && !pointer.is_grabbed() && mod_down { | 2887 | + if button == Some(MouseButton::Middle) |
| 2888 | + && !pointer.is_grabbed() | ||
| 2889 | + && mod_down | ||
| 2890 | + && !self.niri.is_locked() | ||
| 2891 | + && !self.niri.screenshot_ui.is_open() | ||
| 2892 | + { | ||
| 2888 | let output_ws = if is_overview_open { | 2893 | let output_ws = if is_overview_open { |
| 2889 | self.niri.workspace_under_cursor(true) | 2894 | self.niri.workspace_under_cursor(true) |
| 2890 | } else { | 2895 | } else { |