From 4ea77a8eb60de9572adaf0fff54973d5bf57534a Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Wed, 26 Mar 2025 21:45:38 -0700 Subject: [PATCH] wayland: update QWaylandShellSurface impls to use updateExposure() For Qt 6.9.0 --- src/wayland/session_lock/surface.cpp | 4 +++- src/wayland/wlr_layershell/surface.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/wayland/session_lock/surface.cpp b/src/wayland/session_lock/surface.cpp index 57c5989..91e939d 100644 --- a/src/wayland/session_lock/surface.cpp +++ b/src/wayland/session_lock/surface.cpp @@ -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 { diff --git a/src/wayland/wlr_layershell/surface.cpp b/src/wayland/wlr_layershell/surface.cpp index 3c0338c..b0276e4 100644 --- a/src/wayland/wlr_layershell/surface.cpp +++ b/src/wayland/wlr_layershell/surface.cpp @@ -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();