QPlatformWindow: don't call QScreen::virtualSiblings()
... when QT_NO_CURSOR is enabled. Then, result of this function is unneeded. Change-Id: I0e74e1aa5253de2608c4c18cb2c4b4e2e9f4c9e2 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
parent
ad9340de99
commit
ea711d0f59
@ -552,8 +552,8 @@ static inline const QScreen *effectiveScreen(const QWindow *window)
|
||||
const QScreen *screen = window->screen();
|
||||
if (!screen)
|
||||
return QGuiApplication::primaryScreen();
|
||||
const QList<QScreen *> siblings = screen->virtualSiblings();
|
||||
#ifndef QT_NO_CURSOR
|
||||
const QList<QScreen *> siblings = screen->virtualSiblings();
|
||||
if (siblings.size() > 1) {
|
||||
const QPoint referencePoint = window->transientParent() ? window->transientParent()->geometry().center() : QCursor::pos();
|
||||
for (const QScreen *sibling : siblings) {
|
||||
|
Loading…
Reference in New Issue
Block a user