element: Don't send configure for X11 surfaces

This commit is contained in:
Victoria Brekenfeld 2023-11-22 12:48:32 +01:00 committed by Victoria Brekenfeld
parent daf7437c8b
commit 37623f063f

View file

@ -458,10 +458,7 @@ impl CosmicSurface {
pub fn send_configure(&self) -> Option<Serial> { pub fn send_configure(&self) -> Option<Serial> {
match self { match self {
CosmicSurface::Wayland(window) => window.toplevel().send_pending_configure(), CosmicSurface::Wayland(window) => window.toplevel().send_pending_configure(),
CosmicSurface::X11(surface) => { CosmicSurface::X11(_) => None,
let _ = surface.configure(None);
None
}
_ => unreachable!(), _ => unreachable!(),
} }
} }