feat: load & watch cosmic.css

This commit is contained in:
Ashley Wulber 2022-08-17 19:20:05 -04:00
parent 8485b82e9e
commit aaffa76b98
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
3 changed files with 63 additions and 22 deletions

View file

@ -55,9 +55,7 @@ impl CosmicWaylandDisplay {
}
let wayland_display = unsafe {
wayland_client::Display::from_external_display(
display.wl_display().c_ptr() as *mut _
)
wayland_client::Display::from_external_display(display.wl_display().c_ptr() as *mut _)
}; // XXX is this sound?
let mut event_queue = wayland_display.create_event_queue();
@ -176,8 +174,8 @@ impl ObjectImpl for LayerShellWindowInner {
fn signals() -> &'static [Signal] {
static SIGNALS: Lazy<Vec<Signal>> = Lazy::new(|| {
vec![Signal::builder("is-active-notify")
.param_types(&[bool::static_type().into()])
.build()]
.param_types(&[bool::static_type().into()])
.build()]
});
SIGNALS.as_ref()
}