mirror of https://github.com/hyprwm/Hyprland
layersurface: null check for surface validity before unmap()
This commit is contained in:
parent
73d09953e8
commit
256db08aed
|
@ -192,6 +192,7 @@ void CLayerSurface::onUnmap() {
|
||||||
g_pCompositor->addToFadingOutSafe(self.lock());
|
g_pCompositor->addToFadingOutSafe(self.lock());
|
||||||
|
|
||||||
mapped = false;
|
mapped = false;
|
||||||
|
if (layerSurface && layerSurface->surface)
|
||||||
layerSurface->surface->unmap();
|
layerSurface->surface->unmap();
|
||||||
|
|
||||||
startAnimation(false);
|
startAnimation(false);
|
||||||
|
@ -204,6 +205,7 @@ void CLayerSurface::onUnmap() {
|
||||||
startAnimation(false);
|
startAnimation(false);
|
||||||
|
|
||||||
mapped = false;
|
mapped = false;
|
||||||
|
if (layerSurface && layerSurface->surface)
|
||||||
layerSurface->surface->unmap();
|
layerSurface->surface->unmap();
|
||||||
|
|
||||||
g_pCompositor->addToFadingOutSafe(self.lock());
|
g_pCompositor->addToFadingOutSafe(self.lock());
|
||||||
|
|
Loading…
Reference in New Issue