fix: ub/crash when changing layershell props after hiding window

This commit is contained in:
outfoxxed 2024-03-04 17:54:33 -08:00
parent 3d4b8efc74
commit 5ac04649aa
Signed by: outfoxxed
GPG Key ID: 4C88A185FB89301E
1 changed files with 4 additions and 1 deletions

View File

@ -69,7 +69,10 @@ QSWaylandLayerSurface::QSWaylandLayerSurface(
this->set_size(size.width(), size.height());
}
QSWaylandLayerSurface::~QSWaylandLayerSurface() { this->destroy(); }
QSWaylandLayerSurface::~QSWaylandLayerSurface() {
this->ext->surface = nullptr;
this->destroy();
}
void QSWaylandLayerSurface::zwlr_layer_surface_v1_configure(
quint32 serial,