mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2026-02-25 03:43:58 +11:00
wayland/layershell: ensure bridge is nulled on layer destruction
Fixes rare race condition crashes.
This commit is contained in:
parent
2bcd9e07fd
commit
bf235d3d4d
3 changed files with 34 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue