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

View file

@ -69,7 +69,10 @@ QSWaylandLayerSurface::QSWaylandLayerSurface(
this->set_size(size.width(), size.height()); 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( void QSWaylandLayerSurface::zwlr_layer_surface_v1_configure(
quint32 serial, quint32 serial,