apprt/gtk-ng: implement `maximize` and `fullscreen`

These fell through the cracks.
pull/8236/head
Mitchell Hashimoto 2025-08-14 15:01:00 -07:00
parent 264dbf9e46
commit 6b1dd3e441
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
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();