Android: Don't update offscreen windows
Offscreen windows should not be handle by the platform plugin. Task-number: QTBUG-50973 Change-Id: I719a24b9bbcaad460d78fdc4095e86d615357cd2 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
This commit is contained in:
parent
f12006e644
commit
dde86ebb9b
@ -621,7 +621,12 @@ static void updateWindow(JNIEnv */*env*/, jobject /*thiz*/)
|
||||
|
||||
if (QGuiApplication::instance() != nullptr) {
|
||||
foreach (QWindow *w, QGuiApplication::topLevelWindows()) {
|
||||
QRect availableGeometry = w->screen()->availableGeometry();
|
||||
|
||||
// Skip non-platform windows, e.g., offscreen windows.
|
||||
if (!w->handle())
|
||||
continue;
|
||||
|
||||
QRect availableGeometry = w->screen()->availableGeometry();
|
||||
if (w->geometry().width() > 0 && w->geometry().height() > 0 && availableGeometry.width() > 0 && availableGeometry.height() > 0)
|
||||
QWindowSystemInterface::handleExposeEvent(w, QRegion(QRect(QPoint(), w->geometry().size())));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user