From 0177eedd03bd9a75dafea296f77b8a6bdad9c3cb Mon Sep 17 00:00:00 2001 From: SineStriker <55847490+SineStriker@users.noreply.github.com> Date: 周六, 04 5月 2024 20:59:54 +0800 Subject: [PATCH] Merge pull request #75 from mentalfl0w/patch-1 --- src/core/contexts/cocoawindowcontext.mm | 10 +++------- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/core/contexts/cocoawindowcontext.mm b/src/core/contexts/cocoawindowcontext.mm index 61ad3b8..c26ccfa 100644 --- a/src/core/contexts/cocoawindowcontext.mm +++ b/src/core/contexts/cocoawindowcontext.mm @@ -330,13 +330,9 @@ nswindow.movableByWindowBackground = NO; nswindow.movable = NO; // This line causes the window in the wrong position when // become fullscreen. - // For some unknown reason, we don't need the following hack in Qt versions below or - // equal to 6.2.4. -#if (QT_VERSION > QT_VERSION_CHECK(6, 2, 4)) - [nswindow standardWindowButton:NSWindowCloseButton].hidden = (visible ? NO : YES); - [nswindow standardWindowButton:NSWindowMiniaturizeButton].hidden = (visible ? NO : YES); - [nswindow standardWindowButton:NSWindowZoomButton].hidden = (visible ? NO : YES); -#endif + [nswindow standardWindowButton:NSWindowCloseButton].hidden = NO; + [nswindow standardWindowButton:NSWindowMiniaturizeButton].hidden = NO; + [nswindow standardWindowButton:NSWindowZoomButton].hidden = NO; } static void replaceImplementations() { -- Gitblit v1.9.1