From be643a27f44caa67fa34f10a7b7061a841feb943 Mon Sep 17 00:00:00 2001 From: Zhang Hao Date: Thu, 11 Mar 2021 08:52:13 +0800 Subject: Account for multiple screens when computing QSizeGrip available geometry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In a multi-screen setup, when the window was resized on one of the screens, the resize was limited to the available geometry of the screen the window was on. Fix this by using the whole virtual geometry of all the screens as basis for the resize. Fixes: QTBUG-91714 Change-Id: I28dd241d73f6a68550af88e368f0dbdcb9ebf42b Reviewed-by: Qt CI Bot Reviewed-by: Tor Arne Vestbø --- src/plugins/platforms/cocoa/qcocoatheme.mm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins') diff --git a/src/plugins/platforms/cocoa/qcocoatheme.mm b/src/plugins/platforms/cocoa/qcocoatheme.mm index f88569df05..1bfa4b73ea 100644 --- a/src/plugins/platforms/cocoa/qcocoatheme.mm +++ b/src/plugins/platforms/cocoa/qcocoatheme.mm @@ -519,6 +519,8 @@ QVariant QCocoaTheme::themeHint(ThemeHint hint) const return QVariant(int(QTextCharFormat::DotLine)); case QPlatformTheme::UseFullScreenForPopupMenu: return QVariant(bool([[NSApplication sharedApplication] presentationOptions] & NSApplicationPresentationFullScreen)); + case QPlatformTheme::InteractiveResizeAcrossScreens: + return !NSScreen.screensHaveSeparateSpaces; default: break; } -- cgit v1.2.3