mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-16 04:23:49 -07:00
layersurface: null check for surface validity before unmap()
This commit is contained in:
@@ -192,7 +192,8 @@ void CLayerSurface::onUnmap() {
|
||||
g_pCompositor->addToFadingOutSafe(self.lock());
|
||||
|
||||
mapped = false;
|
||||
layerSurface->surface->unmap();
|
||||
if (layerSurface && layerSurface->surface)
|
||||
layerSurface->surface->unmap();
|
||||
|
||||
startAnimation(false);
|
||||
return;
|
||||
@@ -204,7 +205,8 @@ void CLayerSurface::onUnmap() {
|
||||
startAnimation(false);
|
||||
|
||||
mapped = false;
|
||||
layerSurface->surface->unmap();
|
||||
if (layerSurface && layerSurface->surface)
|
||||
layerSurface->surface->unmap();
|
||||
|
||||
g_pCompositor->addToFadingOutSafe(self.lock());
|
||||
|
||||
|
Reference in New Issue
Block a user