diff --git a/CHANGELOG.md b/CHANGELOG.md index 848cb96..f36f561 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ ### Fixes - fixed auto refresh stopping to work when changing the logs path +- fixed the program crashing on Linux/Wayland when the overlay is switched on ## v1.4.0 ### Major Changes diff --git a/src/app/overlay.rs b/src/app/overlay.rs index 891ba5e..5178340 100644 --- a/src/app/overlay.rs +++ b/src/app/overlay.rs @@ -184,7 +184,10 @@ impl Overlay { Self(Arc::new(Mutex::new(OverlayInner { move_around: true, columns: COLUMNS.iter().cloned().collect(), - current_size: Vec2::ZERO, + // Must start non-zero: Wayland rejects a 0x0 xdg_surface geometry, + // which crashes wgpu ("Surface is not configured for presentation"). + // Matches the min_inner_size used when building the viewport below. + current_size: vec2(240.0, 80.0), data: Default::default(), position: None, show: false,