add WindowUrgencyChanged ipc event

This commit is contained in:
Duncan Overbruck
2025-05-10 20:18:49 +02:00
committed by Ivan Molodetskikh
parent 9d3d7cb0e9
commit a8259b4cea
4 changed files with 26 additions and 0 deletions
+9
View File
@@ -1129,6 +1129,8 @@ pub struct Window {
///
/// If the window isn't floating then it is in the tiling layout.
pub is_floating: bool,
/// Whether this window requests your attention.
pub is_urgent: bool,
}
/// Output configuration change result.
@@ -1298,6 +1300,13 @@ pub enum Event {
/// Id of the newly focused window, or `None` if no window is now focused.
id: Option<u64>,
},
/// Window urgency changed.
WindowUrgencyChanged {
/// Id of the window.
id: u64,
/// The new urgency state of the window.
urgent: bool,
},
/// The configured keyboard layouts have changed.
KeyboardLayoutsChanged {
/// The new keyboard layout configuration.