aboutsummaryrefslogtreecommitdiff
path: root/src/dbus
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbus')
-rw-r--r--src/dbus/mutter_service_channel.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dbus/mutter_service_channel.rs b/src/dbus/mutter_service_channel.rs
index 646bc4c5..6dd69598 100644
--- a/src/dbus/mutter_service_channel.rs
+++ b/src/dbus/mutter_service_channel.rs
@@ -25,9 +25,12 @@ impl ServiceChannel {
}
let (sock1, sock2) = UnixStream::pair().unwrap();
- self.display
- .insert_client(sock2, Arc::new(ClientState::default()))
- .unwrap();
+ let data = Arc::new(ClientState {
+ compositor_state: Default::default(),
+ // Would be nice to thread config here but for now it's fine.
+ can_view_decoration_globals: false,
+ });
+ self.display.insert_client(sock2, data).unwrap();
Ok(unsafe { zbus::zvariant::OwnedFd::from_raw_fd(sock1.into_raw_fd()) })
}
}