gtk: don't toggle headerbar on (un)maximize while using SSDs

See #5137. We should never display the header bar when using SSDs anyway
This commit is contained in:
Leah Amelia Chen
2025-01-17 20:48:03 +01:00
parent 72d085525b
commit 68124f60c7

View File

@ -640,6 +640,11 @@ fn gtkWindowNotifyMaximized(
) callconv(.C) void {
const self = userdataSelf(ud orelse return);
const maximized = c.gtk_window_is_maximized(self.window) != 0;
// Only toggle visibility of the header bar when we're using CSDs,
// and actually intend on displaying the header bar
if (!self.winproto.clientSideDecorationEnabled()) return;
if (!maximized) {
self.headerbar.setVisible(true);
return;