1
0
Fork 0
forked from wry/wry

wayland: handle chromium bug 1329214 gracefully

This commit is contained in:
Julian Orth 2022-05-25 19:30:02 +02:00
parent 6b38bd651b
commit 568341a3d0

View file

@ -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);
}