fix surface destruction order

This commit is contained in:
vaxerski 2022-11-18 14:18:13 +00:00
parent 6d3a15f33c
commit 32e28312f1

View File

@ -40,8 +40,8 @@ CLayerSurface::CLayerSurface(SMonitor* pMonitor) {
}
CLayerSurface::~CLayerSurface() {
wl_surface_destroy(pSurface);
zwlr_layer_surface_v1_destroy(pLayerSurface);
wl_surface_destroy(pSurface);
wl_display_flush(g_pHyprpaper->m_sDisplay);
}