parent
5b4baee9fa
commit
997e013d7e
|
|
@ -523,12 +523,20 @@ pub const Surface = extern struct {
|
|||
priv.font_size_request = font_size_ptr;
|
||||
self.as(gobject.Object).notifyByPspec(properties.@"font-size-request".impl.param_spec);
|
||||
|
||||
// Setup our pwd
|
||||
// Remainder needs a config. If there is no config we just assume
|
||||
// we aren't inheriting any of these values.
|
||||
if (priv.config) |config_obj| {
|
||||
const config = config_obj.get();
|
||||
|
||||
// Setup our pwd if configured to inherit
|
||||
if (config.@"window-inherit-working-directory") {
|
||||
if (parent.rt_surface.surface.getPwd()) |pwd| {
|
||||
priv.pwd = glib.ext.dupeZ(u8, pwd);
|
||||
self.as(gobject.Object).notifyByPspec(properties.pwd.impl.param_spec);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Force the surface to redraw itself. Ghostty often will only redraw
|
||||
/// the terminal in reaction to internal changes. If there are external
|
||||
|
|
|
|||
Loading…
Reference in New Issue