mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 21:51:55 -07:00
desktop: fix segfault when destroying a partially create layer surface (#9247)
This commit is contained in:
@@ -98,6 +98,7 @@ void CLayerSurface::onDestroy() {
|
|||||||
onUnmap();
|
onUnmap();
|
||||||
} else {
|
} else {
|
||||||
Debug::log(LOG, "Removing LayerSurface that wasn't mapped.");
|
Debug::log(LOG, "Removing LayerSurface that wasn't mapped.");
|
||||||
|
if (alpha)
|
||||||
alpha->setValueAndWarp(0.f);
|
alpha->setValueAndWarp(0.f);
|
||||||
fadingOut = true;
|
fadingOut = true;
|
||||||
g_pCompositor->addToFadingOutSafe(self.lock());
|
g_pCompositor->addToFadingOutSafe(self.lock());
|
||||||
|
Reference in New Issue
Block a user