Qt: Don't re-enable updates on xcb

This commit is contained in:
Vicki Pfau 2022-09-09 01:45:33 -07:00
parent 4b0ea00ba1
commit d95d982ba3
1 changed files with 3 additions and 1 deletions

View File

@ -298,7 +298,9 @@ void DisplayGL::pauseDrawing() {
if (m_hasStarted) {
m_isDrawing = false;
QMetaObject::invokeMethod(m_painter.get(), "pause", Qt::BlockingQueuedConnection);
setUpdatesEnabled(true);
if (QGuiApplication::platformName() != "xcb") {
setUpdatesEnabled(true);
}
}
}