gtk: for a new window's first tab, inherit the parent's initial size hints

This commit is contained in:
Ēriks Remess
2026-02-20 20:01:22 +02:00
parent 0ac810461a
commit 727446fa8b

View File

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