fix: gtk titlebar being restored if it shouldn't be

This commit is contained in:
Adam Wolf
2025-01-15 00:44:56 -06:00
committed by Mitchell Hashimoto
parent e39745113a
commit 80eb406b82

View File

@ -646,7 +646,7 @@ fn gtkWindowNotifyMaximized(
if (!self.winproto.clientSideDecorationEnabled()) return; if (!self.winproto.clientSideDecorationEnabled()) return;
if (!maximized) { if (!maximized) {
self.headerbar.setVisible(true); self.headerbar.setVisible(self.app.config.@"gtk-titlebar");
return; return;
} }
if (self.app.config.@"gtk-titlebar-hide-when-maximized") { if (self.app.config.@"gtk-titlebar-hide-when-maximized") {