mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Add screenshot-window show-pointer=true
This commit is contained in:
@@ -132,6 +132,7 @@ pub enum Action {
|
||||
),
|
||||
ScreenshotWindow(
|
||||
#[knuffel(property(name = "write-to-disk"), default = true)] bool,
|
||||
#[knuffel(property(name = "show-pointer"), default = false)] bool,
|
||||
// Path; not settable from knuffel
|
||||
Option<String>,
|
||||
),
|
||||
@@ -139,6 +140,7 @@ pub enum Action {
|
||||
ScreenshotWindowById {
|
||||
id: u64,
|
||||
write_to_disk: bool,
|
||||
show_pointer: bool,
|
||||
path: Option<String>,
|
||||
},
|
||||
ToggleKeyboardShortcutsInhibit,
|
||||
@@ -407,15 +409,18 @@ impl From<niri_ipc::Action> for Action {
|
||||
niri_ipc::Action::ScreenshotWindow {
|
||||
id: None,
|
||||
write_to_disk,
|
||||
show_pointer,
|
||||
path,
|
||||
} => Self::ScreenshotWindow(write_to_disk, path),
|
||||
} => Self::ScreenshotWindow(write_to_disk, show_pointer, path),
|
||||
niri_ipc::Action::ScreenshotWindow {
|
||||
id: Some(id),
|
||||
write_to_disk,
|
||||
show_pointer,
|
||||
path,
|
||||
} => Self::ScreenshotWindowById {
|
||||
id,
|
||||
write_to_disk,
|
||||
show_pointer,
|
||||
path,
|
||||
},
|
||||
niri_ipc::Action::ToggleKeyboardShortcutsInhibit {} => {
|
||||
|
||||
Reference in New Issue
Block a user