1
0
Fork 0
forked from wry/wry

head-management: add non-desktop-info-v1 extension

This commit is contained in:
Julian Orth 2025-07-13 11:14:37 +02:00
parent 81a7c973d0
commit b76aade265
17 changed files with 164 additions and 5 deletions

View file

@ -57,6 +57,8 @@ pub fn handle(state: &Rc<State>, connector: &Rc<dyn Connector>) {
in_compositor_space: false,
mode: Default::default(),
monitor_info: None,
inherent_non_desktop: false,
override_non_desktop: backend_state.non_desktop_override,
};
let data = Rc::new(ConnectorData {
id,
@ -132,7 +134,7 @@ impl ConnectorHandler {
self.data.connected.set(true);
self.data.set_state(&self.state, info.state);
let name = self.state.globals.name();
if info.non_desktop {
if info.non_desktop_effective {
self.handle_non_desktop_connected(info).await;
} else {
self.handle_desktop_connected(info, name).await;