Skip to content

Commit 47bee1b

Browse files
authored
Fix macOS title bar buttons not displaying properly.
In order for macOS windows to display buttons properly, we can't hide macOS native buttons, otherwise the title bar will appear on top of the buttons. The easiest manual solution is to refresh the window's flag, but for convenience, it's better to just not hide it.
1 parent 87b7caa commit 47bee1b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/core/contexts/cocoawindowcontext.mm

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,6 @@ void setSystemTitleBarVisible(const bool visible) {
330330
nswindow.movableByWindowBackground = NO;
331331
nswindow.movable = NO; // This line causes the window in the wrong position when
332332
// become fullscreen.
333-
// For some unknown reason, we don't need the following hack in Qt versions below or
334-
// equal to 6.2.4.
335-
#if (QT_VERSION > QT_VERSION_CHECK(6, 2, 4))
336-
[nswindow standardWindowButton:NSWindowCloseButton].hidden = (visible ? NO : YES);
337-
[nswindow standardWindowButton:NSWindowMiniaturizeButton].hidden = (visible ? NO : YES);
338-
[nswindow standardWindowButton:NSWindowZoomButton].hidden = (visible ? NO : YES);
339-
#endif
340333
}
341334

342335
static void replaceImplementations() {

0 commit comments

Comments
 (0)