macOS: Only skip screen reconfigure if primary screen changed
Change-Id: Ia5d208ace5086e8e92f95f859383773894a18768 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>bb10
parent
3ee634d520
commit
dcbe25bbbb
|
|
@ -114,11 +114,10 @@ void QCocoaScreen::initializeScreens()
|
|||
mainDisplay->updateProperties();
|
||||
qCInfo(lcQpaScreen) << "Primary screen changed to" << mainDisplay;
|
||||
QWindowSystemInterface::handlePrimaryScreenChanged(mainDisplay);
|
||||
if (cocoaScreen == mainDisplay)
|
||||
return; // Already reconfigured
|
||||
}
|
||||
|
||||
if (cocoaScreen == mainDisplay)
|
||||
return; // Already reconfigured
|
||||
|
||||
cocoaScreen->updateProperties();
|
||||
qCInfo(lcQpaScreen).nospace() << "Reconfigured " <<
|
||||
(primaryScreen() == cocoaScreen ? "primary " : "")
|
||||
|
|
|
|||
Loading…
Reference in New Issue