From 7471cd5ddd794d904dd66562ca1446d42c7fc6a5 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Thu, 27 Nov 2025 21:43:04 +0100 Subject: screenshot_ui: add ctrl+a command to select entire output --- src/input/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/input') 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 ) } -- cgit