mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-13 19:15:48 +00:00
gtk: for a new window's first tab, inherit the parent's initial size hints
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user