Fix integration tests

This commit is contained in:
Shawn Wallace 2024-05-20 00:45:09 -04:00
parent 7c6915b0ec
commit 38e58bd11d

View file

@ -92,7 +92,7 @@ pub struct Toplevel {
pub states: Vec<xdg_toplevel::State>, pub states: Vec<xdg_toplevel::State>,
pub closed: bool, pub closed: bool,
pub title: Option<String>, pub title: Option<String>,
pub app_id: Option<String> pub app_id: Option<String>,
} }
#[derive(Debug, PartialEq, Eq)] #[derive(Debug, PartialEq, Eq)]
@ -501,7 +501,6 @@ impl Dispatch<XdgToplevel, SurfaceId> for State {
unreachable!(); unreachable!();
}; };
toplevel.app_id = app_id.into(); toplevel.app_id = app_id.into();
} }
other => todo!("unhandled request {other:?}"), other => todo!("unhandled request {other:?}"),
} }
@ -531,7 +530,7 @@ impl Dispatch<XdgSurface, SurfaceId> for State {
states: Vec::new(), states: Vec::new(),
closed: false, closed: false,
title: None, title: None,
app_id: None app_id: None,
}; };
let data = state.surfaces.get_mut(surface_id).unwrap(); let data = state.surfaces.get_mut(surface_id).unwrap();
data.role = Some(SurfaceRole::Toplevel(t)); data.role = Some(SurfaceRole::Toplevel(t));
@ -838,6 +837,7 @@ impl Dispatch<WlSurface, ()> for State {
.surfaces .surfaces
.remove(&SurfaceId(resource.id().protocol_id())); .remove(&SurfaceId(resource.id().protocol_id()));
} }
SetInputRegion { .. } => {}
other => todo!("unhandled request {other:?}"), other => todo!("unhandled request {other:?}"),
} }
} }