diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-05-10 23:42:46 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-05-10 23:43:00 +0300 |
| commit | 89b7423ee56da9b7c08b012c9491407e34b1c9f6 (patch) | |
| tree | 1382a950b8d9e022f468fbb54fd87c3f2b88c422 /src | |
| parent | a2efaf2816f14ea437d88bc6b9253b1e347c4cee (diff) | |
| download | niri-89b7423ee56da9b7c08b012c9491407e34b1c9f6.tar.gz niri-89b7423ee56da9b7c08b012c9491407e34b1c9f6.tar.bz2 niri-89b7423ee56da9b7c08b012c9491407e34b1c9f6.zip | |
Print urgent status in niri msg windows
Diffstat (limited to 'src')
| -rw-r--r-- | src/ipc/client.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ipc/client.rs b/src/ipc/client.rs index 55034ce0..2eab7e15 100644 --- a/src/ipc/client.rs +++ b/src/ipc/client.rs @@ -570,7 +570,8 @@ fn print_output(output: Output) -> anyhow::Result<()> { fn print_window(window: &Window) { let focused = if window.is_focused { " (focused)" } else { "" }; - println!("Window ID {}:{focused}", window.id); + let urgent = if window.is_urgent { " (urgent)" } else { "" }; + println!("Window ID {}:{focused}{urgent}", window.id); if let Some(title) = &window.title { println!(" Title: \"{title}\""); |
