refactor(wayland): use smithay seats
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user