mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
wayland/layershell: ensure bridge is nulled on layer destruction
Fixes rare race condition crashes.
This commit is contained in:
3 files changed
+34
-3
No files matched your search
@@ -173,7 +173,10 @@ LayerSurface::LayerSurface(LayerShellIntegration* shell, QtWaylandClient::QWayla
|
||||
this->bridge->surface = this;
|
||||
}
|
||||
|
||||
LayerSurface::~LayerSurface() { this->destroy(); }
|
||||
LayerSurface::~LayerSurface() {
|
||||
delete this->bridge;
|
||||
this->destroy();
|
||||
}
|
||||
|
||||
void LayerSurface::zwlr_layer_surface_v1_configure(quint32 serial, quint32 width, quint32 height) {
|
||||
this->ack_configure(serial);
|
||||
|
||||
Reference in new issue
Block a user