diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-11-27 21:43:04 +0100 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-12-01 21:42:28 +0100 |
| commit | 7471cd5ddd794d904dd66562ca1446d42c7fc6a5 (patch) | |
| tree | e307d49a53e4054f2e4b1a7003482943785c6f8a /src/input/mod.rs | |
| parent | e863f52feaaef9c4149211045013b1f515ac5a8e (diff) | |
| download | niri-feat/screenshotselectall.tar.gz niri-feat/screenshotselectall.tar.bz2 niri-feat/screenshotselectall.zip | |
screenshot_ui: add ctrl+a command to select entire outputfeat/screenshotselectall
Diffstat (limited to 'src/input/mod.rs')
| -rw-r--r-- | src/input/mod.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs index 81e5d863..f53855af 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -1636,7 +1636,11 @@ impl State { self.niri.queue_redraw_all(); } Action::MaximizeColumn => { - self.niri.layout.toggle_full_width(); + if self.niri.screenshot_ui.is_open() { + self.niri.screenshot_ui.select_entire_output(); + } else { + self.niri.layout.toggle_full_width(); + } } Action::MaximizeWindowToEdges => { let focus = self.niri.layout.focus().map(|m| m.window.clone()); @@ -4570,6 +4574,7 @@ fn allowed_during_screenshot(action: &Action) -> bool { | Action::SetWindowWidth(_) | Action::SetWindowHeight(_) | Action::SetColumnWidth(_) + | Action::MaximizeColumn ) } |
