aboutsummaryrefslogtreecommitdiff
path: root/niri-ipc/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-05-05 12:50:18 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-05-05 12:50:18 +0400
commitea590918696709b0586eb1941b4829ffc5a46e94 (patch)
tree3432d7e56a5beeb7d5c5213f747633906c3f6e70 /niri-ipc/src
parent2e4a2e13b175fcbb0fef58214f7de5b60775214a (diff)
downloadniri-ea590918696709b0586eb1941b4829ffc5a46e94.tar.gz
niri-ea590918696709b0586eb1941b4829ffc5a46e94.tar.bz2
niri-ea590918696709b0586eb1941b4829ffc5a46e94.zip
Print message when output was not found
Diffstat (limited to 'niri-ipc/src')
-rw-r--r--niri-ipc/src/lib.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs
index db2d7a0f..bf67acd7 100644
--- a/niri-ipc/src/lib.rs
+++ b/niri-ipc/src/lib.rs
@@ -58,6 +58,8 @@ pub enum Response {
Outputs(HashMap<String, Output>),
/// Information about the focused window.
FocusedWindow(Option<Window>),
+ /// Output configuration change result.
+ OutputConfigChanged(OutputConfigChanged),
}
/// Actions that niri can perform.
@@ -456,6 +458,15 @@ pub struct Window {
pub app_id: Option<String>,
}
+/// Output configuration change result.
+#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq)]
+pub enum OutputConfigChanged {
+ /// The target output was connected and the change was applied.
+ Applied,
+ /// The target output was not found, the change will be applied when it is connected.
+ OutputWasMissing,
+}
+
impl FromStr for SizeChange {
type Err = &'static str;