summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa/qcocoatheme.mm
diff options
context:
space:
mode:
authorZhang Hao <zhanghao@uniontech.com>2021-03-11 08:52:13 +0800
committerZhang Hao <zhanghao@uniontech.com>2021-03-24 00:54:02 +0000
commitbe643a27f44caa67fa34f10a7b7061a841feb943 (patch)
tree394ebe8b7c1d402b4977249ab5086094828d253f /src/plugins/platforms/cocoa/qcocoatheme.mm
parent2db455aff4ed925add61a5048f40f83696afafc8 (diff)
Account for multiple screens when computing QSizeGrip available geometry
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 <qt_ci_bot@qt-project.org> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoatheme.mm')
-rw-r--r--src/plugins/platforms/cocoa/qcocoatheme.mm2
1 files changed, 2 insertions, 0 deletions
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;
}