refactor(wayland): use smithay seats

This commit is contained in:
Nova
2024-03-08 05:57:52 -05:00
parent 807928a8d3
commit fba4e10611
9 changed files with 921 additions and 670 deletions

View File

@@ -177,6 +177,7 @@ pub struct PanelItemInitData {
pub trait Backend: Send + Sync + 'static {
fn start_data(&self) -> Result<PanelItemInitData>;
fn surface_alive(&self, surface: &SurfaceID) -> bool;
fn apply_surface_material(&self, surface: SurfaceID, model_part: &Arc<ModelPart>);
@@ -542,6 +543,9 @@ impl<B: Backend + ?Sized> Backend for PanelItem<B> {
fn start_data(&self) -> Result<PanelItemInitData> {
self.backend.start_data()
}
fn surface_alive(&self, surface: &SurfaceID) -> bool {
self.backend.surface_alive(surface)
}
fn apply_surface_material(&self, surface: SurfaceID, model_part: &Arc<ModelPart>) {
self.backend.apply_surface_material(surface, model_part)