Skip to content

Commit 5703fba

Browse files
committed
wayland/lock: handle null window in configure()
Has caused a crash.
1 parent 07ea4de commit 5703fba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wayland/session_lock/surface.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ void QSWaylandSessionLockSurface::ext_session_lock_surface_v1_configure(
8181
quint32 width,
8282
quint32 height
8383
) {
84+
if (!this->window()) return;
85+
8486
this->ack_configure(serial);
8587

8688
this->size = QSize(static_cast<qint32>(width), static_cast<qint32>(height));

0 commit comments

Comments
 (0)