mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 07:46:12 +03:00
gtk: don't toggle headerbar on (un)maximize while using SSDs (#5192)
See #5137. We should never display the header bar when using SSDs anyway
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user