From a3e6caad150448028fc76d2b223e08251bb2bc6a Mon Sep 17 00:00:00 2001 From: r0chd Date: Sat, 25 Jul 2026 12:37:05 +0200 Subject: [PATCH] deps(sessiond): update session_core_v1 protocol --- protocols/session_core_v1.xml | 35 ++++++++++++++++++++++++++ protocols/session_management_v2.xml | 38 +++++++++++++++++++++++++++++ src/main.rs | 2 ++ 3 files changed, 75 insertions(+) diff --git a/protocols/session_core_v1.xml b/protocols/session_core_v1.xml index 47044a5..886fcd7 100644 --- a/protocols/session_core_v1.xml +++ b/protocols/session_core_v1.xml @@ -1,5 +1,27 @@ + + Copyright (c) 2026 Oskar Rochowiak + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + + Unprivileged read-only interface for observing active sessions. @@ -102,6 +124,9 @@ + + + @@ -397,6 +422,16 @@ + + + + + + + + + + diff --git a/protocols/session_management_v2.xml b/protocols/session_management_v2.xml index 709c5d2..1c945c3 100644 --- a/protocols/session_management_v2.xml +++ b/protocols/session_management_v2.xml @@ -1,5 +1,27 @@ + + Copyright (c) 2026 Oskar Rochowiak + + Permission is hereby granted, free of charge, to any person obtaining a + copy of this software and associated documentation files (the "Software"), + to deal in the Software without restriction, including without limitation + the rights to use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. + + Privileged interface for registering owned sessions. @@ -44,6 +66,12 @@ + + + Optional. Must be sent before done. Defaults to user. + + + Optional. Must be sent before done. May be sent multiple times. @@ -85,4 +113,14 @@ + + + + + + + + + + diff --git a/src/main.rs b/src/main.rs index 15d6e70..3a11561 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,7 @@ mod session_management_v2 { hyprwire::include_protocol!("session_management_v2"); pub use client::*; + pub use spec::*; } mod session_core_v1 { hyprwire::include_protocol!("session_core_v1"); @@ -344,6 +345,7 @@ impl hyprwire::Dispatch for SessiondDi ); return; }; + session_object.send_class(session_management_v2::SessionClass::Manager); session_object.send_done(); self.managed_sessions.push(ManagedSession { -- 2.54.0