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: 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);
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
this->window()->handleExpose(QRect(QPoint(), this->size));
#else
#elif QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
this->window()->sendRecursiveExposeEvent();
#else
this->window()->updateExposure();
#endif
if (this->visible) this->initVisible();
} else {

View file

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