From 5b88e3e832ade0c0c9494072b79637536496837c Mon Sep 17 00:00:00 2001 From: nesquena-hermes Date: Tue, 22 Sep 2026 19:32:47 +0000 Subject: [PATCH] docs(strip): correct stale Linux resize comment in layout() The comment claimed window resizes do not re-fit webviews on Linux. Since #87 the GtkBox child packing (fixed 38px strip, expanding content) makes GTK re-allocate both children on resize; only the explicit set_position/set_size geometry calls are skipped. Comment-only; flagged as MARGINAL by the Codex gate on #87. --- src-tauri/src/strip.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src-tauri/src/strip.rs b/src-tauri/src/strip.rs index 88fd939..aacec94 100644 --- a/src-tauri/src/strip.rs +++ b/src-tauri/src/strip.rs @@ -1130,9 +1130,11 @@ pub fn session_windows(app: &AppHandle) -> Vec { /// Recompute strip + active tab bounds (window Resized handler). pub fn layout(app: &AppHandle, window_label: &str) { - // Linux: re-fitting GTK child webviews crashes natively (smoke v3/v5 - // finding) — skip entirely. Cost: window resizes don't re-fit webviews - // there yet; tracked for the next sprint (upstream wry GTK geometry). + // Linux: explicit set_position/set_size on GTK child webviews crashes + // natively (smoke v3/v5 finding), so skip the geometry calls entirely. + // Resizes still reflow on Linux: `apply_linux_child_packing` gives the + // strip a fixed 38px and lets the content webview expand in the GtkBox, + // so GTK re-allocates both children itself when the window resizes. if cfg!(target_os = "linux") { return; }