apprt/gtk-ng: implement `maximize` and `fullscreen` (#8236)

These fell through the cracks.
pull/8238/head
Mitchell Hashimoto 2025-08-14 15:06:50 -07:00 committed by GitHub
commit 4e26bb65ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

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