From 568341a3d04fa1cad747fc300314a92993f0d2dd Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Wed, 25 May 2022 19:30:02 +0200 Subject: [PATCH] wayland: handle chromium bug 1329214 gracefully --- src/ifs/wl_surface/xdg_surface.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ifs/wl_surface/xdg_surface.rs b/src/ifs/wl_surface/xdg_surface.rs index c1d908be..7031d189 100644 --- a/src/ifs/wl_surface/xdg_surface.rs +++ b/src/ifs/wl_surface/xdg_surface.rs @@ -251,6 +251,10 @@ impl XdgSurface { fn set_window_geometry(&self, parser: MsgParser<'_, '_>) -> Result<(), XdgSurfaceError> { let req: SetWindowGeometry = self.surface.client.parse(self, parser)?; + if req.height == 0 && req.width == 0 { + // TODO: https://crbug.com/1329214 + return Ok(()); + } if req.height <= 0 || req.width <= 0 { return Err(XdgSurfaceError::NonPositiveWidthHeight); }