fix: upgrade smithay

This commit is contained in:
Nova
2023-05-10 16:51:39 -04:00
parent cb9368cb8e
commit a31781146e
5 changed files with 71 additions and 94 deletions

View File

@@ -1,11 +1,11 @@
use crate::wayland::surface::CoreSurface;
use super::state::WaylandState;
use super::state::{ClientState, WaylandState};
use portable_atomic::{AtomicU32, Ordering};
use smithay::{
delegate_compositor,
reexports::wayland_server::protocol::wl_surface::WlSurface,
wayland::compositor::{self, CompositorHandler, CompositorState},
reexports::wayland_server::{protocol::wl_surface::WlSurface, Client},
wayland::compositor::{self, CompositorClientState, CompositorHandler, CompositorState},
};
use std::sync::Arc;
use tracing::debug;
@@ -36,6 +36,10 @@ impl CompositorHandler for WaylandState {
core_surface.commit(count);
}
}
fn client_compositor_state<'a>(&self, client: &'a Client) -> &'a CompositorClientState {
&client.get_data::<ClientState>().unwrap().compositor_state
}
}
delegate_compositor!(WaylandState);