fix(wayland): warnings

This commit is contained in:
Nova
2024-03-09 23:16:32 -05:00
parent 34aab266a3
commit 302a64785d
2 changed files with 2 additions and 8 deletions

View File

@@ -281,6 +281,7 @@ impl<B: Backend + ?Sized> PanelItem<B> {
}
// Remote signals
#[allow(unused)]
impl<B: Backend + ?Sized> PanelItem<B> {
pub fn toplevel_parent_changed(&self, parent: &str) {
let Some(node) = self.node.upgrade() else {
@@ -381,6 +382,7 @@ macro_rules! flex_deserialize {
}
};
}
#[allow(unused)]
impl<B: Backend + ?Sized> PanelItem<B> {
fn apply_surface_material_flex(
node: Arc<Node>,

View File

@@ -46,14 +46,6 @@ pub struct ClientState {
pub display: Weak<DisplayWrapper>,
pub seat: Arc<SeatWrapper>,
}
impl ClientState {
pub fn flush(&self) {
let Some(display) = self.display.upgrade() else {
return;
};
let _ = display.flush_clients(self.id.get().cloned());
}
}
impl ClientData for ClientState {
fn initialized(&self, client_id: ClientId) {
info!("Wayland client {:?} connected", client_id);