Skip to content

Commit

Permalink
gtk: don't toggle headerbar on (un)maximize while using SSDs
Browse files Browse the repository at this point in the history
See #5137. We should never display the header bar when using SSDs anyway
  • Loading branch information
pluiedev committed Jan 17, 2025
1 parent 72d0855 commit 40b9205
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/apprt/gtk/Window.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 40b9205

Please sign in to comment.