diff --git a/crates/gpui/src/platform/linux/x11/window.rs b/crates/gpui/src/platform/linux/x11/window.rs index 0043559200a967c4bb3819eb2edb81d4dc7166ba..8f9bf5910e0a31e8fed0e6435ccebe75f77ff48e 100644 --- a/crates/gpui/src/platform/linux/x11/window.rs +++ b/crates/gpui/src/platform/linux/x11/window.rs @@ -274,6 +274,11 @@ impl X11WindowState { ); let mut bounds = params.bounds.to_device_pixels(scale_factor); + if bounds.size.width.0 == 0 || bounds.size.height.0 == 0 { + log::warn!("Window bounds contain a zero value. height={}, width={}. Falling back to defaults.", bounds.size.height.0, bounds.size.width.0); + bounds.size.width = 800.into(); + bounds.size.height = 600.into(); + } xcb_connection .create_window(