wayland: update QWaylandShellSurface impls to use updateExposure()

For Qt 6.9.0
This commit is contained in:
outfoxxed 2025-03-26 21:45:38 -07:00
parent 14aa1793df
commit 4ea77a8eb6
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 6 additions and 2 deletions

View file

@ -91,8 +91,10 @@ void QSWaylandSessionLockSurface::ext_session_lock_surface_v1_configure(
this->window()->resizeFromApplyConfigure(this->size); this->window()->resizeFromApplyConfigure(this->size);
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0) #if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
this->window()->handleExpose(QRect(QPoint(), this->size)); this->window()->handleExpose(QRect(QPoint(), this->size));
#else #elif QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
this->window()->sendRecursiveExposeEvent(); this->window()->sendRecursiveExposeEvent();
#else
this->window()->updateExposure();
#endif #endif
if (this->visible) this->initVisible(); if (this->visible) this->initVisible();
} else { } else {

View file

@ -135,8 +135,10 @@ void QSWaylandLayerSurface::zwlr_layer_surface_v1_configure(
this->window()->resizeFromApplyConfigure(this->size); this->window()->resizeFromApplyConfigure(this->size);
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0) #if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
this->window()->handleExpose(QRect(QPoint(), this->size)); this->window()->handleExpose(QRect(QPoint(), this->size));
#else #elif QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
this->window()->sendRecursiveExposeEvent(); this->window()->sendRecursiveExposeEvent();
#else
this->window()->updateExposure();
#endif #endif
} else { } else {
this->window()->applyConfigureWhenPossible(); this->window()->applyConfigureWhenPossible();