From 727446fa8bdb7322b954022476c046a4f094b427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=92riks=20Remess?= Date: Fri, 20 Feb 2026 20:01:22 +0200 Subject: [PATCH] gtk: for a new window's first tab, inherit the parent's initial size hints --- src/apprt/gtk/class/window.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/apprt/gtk/class/window.zig b/src/apprt/gtk/class/window.zig index 543080394..dc33abd21 100644 --- a/src/apprt/gtk/class/window.zig +++ b/src/apprt/gtk/class/window.zig @@ -383,6 +383,10 @@ pub const Window = extern struct { .config = priv.config, }); if (parent_) |p| { + // For a new window's first tab, inherit the parent's initial size hints. + if (context == .window) { + surfaceInit(p.rt_surface.gobj(), self); + } tab.setParentWithContext(p, context); }