mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-05 19:08:17 +00:00
apprt/gtk-ng: implement maximize
and fullscreen
(#8236)
These fell through the cracks.
This commit is contained in:
@@ -319,8 +319,15 @@ pub const Window = extern struct {
|
||||
);
|
||||
}
|
||||
|
||||
// Start states based on config.
|
||||
if (priv.config) |config_obj| {
|
||||
const config = config_obj.get();
|
||||
if (config.maximize) self.as(gtk.Window).maximize();
|
||||
if (config.fullscreen) self.as(gtk.Window).fullscreen();
|
||||
}
|
||||
|
||||
// We always sync our appearance at the end because loading our
|
||||
// config and such can affect our bindings which ar setup initially
|
||||
// config and such can affect our bindings which are setup initially
|
||||
// in initTemplate.
|
||||
self.syncAppearance();
|
||||
|
||||
|
Reference in New Issue
Block a user