Skip to content

Commit 7638c53

Browse files
committed
wayland: update QWaylandShellSurface impls to use updateExposure()
For Qt 6.9.0
1 parent a33ff38 commit 7638c53

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/wayland/session_lock/surface.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ void QSWaylandSessionLockSurface::ext_session_lock_surface_v1_configure(
9191
this->window()->resizeFromApplyConfigure(this->size);
9292
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
9393
this->window()->handleExpose(QRect(QPoint(), this->size));
94-
#else
94+
#elif QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
9595
this->window()->sendRecursiveExposeEvent();
96+
#else
97+
this->window()->updateExposure();
9698
#endif
9799
if (this->visible) this->initVisible();
98100
} else {

src/wayland/wlr_layershell/surface.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,10 @@ void QSWaylandLayerSurface::zwlr_layer_surface_v1_configure(
135135
this->window()->resizeFromApplyConfigure(this->size);
136136
#if QT_VERSION < QT_VERSION_CHECK(6, 7, 0)
137137
this->window()->handleExpose(QRect(QPoint(), this->size));
138-
#else
138+
#elif QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
139139
this->window()->sendRecursiveExposeEvent();
140+
#else
141+
this->window()->updateExposure();
140142
#endif
141143
} else {
142144
this->window()->applyConfigureWhenPossible();

0 commit comments

Comments
 (0)