From 23cd5aa78a26ccf57c6a7993313e42a5c39d43d8 Mon Sep 17 00:00:00 2001 From: Lin Xianyi Date: Sun, 19 Oct 2025 11:22:31 +0000 Subject: Add --path argument for niri msg screenshot* commands (#2126) * Check for empty screenshot parent before creating Avoids a warning. * Add --path argument for niri msg screenshot* commands * fix --------- Co-authored-by: Ivan Molodetskikh --- src/ui/screenshot_ui.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ui/screenshot_ui.rs') diff --git a/src/ui/screenshot_ui.rs b/src/ui/screenshot_ui.rs index 3200cae4..7c03d36e 100644 --- a/src/ui/screenshot_ui.rs +++ b/src/ui/screenshot_ui.rs @@ -63,6 +63,7 @@ pub enum ScreenshotUi { open_anim: Animation, clock: Clock, config: Rc>, + path: Option, }, } @@ -141,6 +142,7 @@ impl ScreenshotUi { screenshots: HashMap, default_output: Output, show_pointer: bool, + path: Option, ) -> bool { if screenshots.is_empty() { return false; @@ -235,6 +237,7 @@ impl ScreenshotUi { open_anim, clock: clock.clone(), config: config.clone(), + path, }; self.update_buffers(); -- cgit