mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 10:29:50 +01:00
ls fixes
This commit is contained in:
parent
b1d3a1deea
commit
cde39e0b6e
1 changed files with 9 additions and 1 deletions
|
@ -66,7 +66,7 @@ void Events::listener_destroyLayerSurface(void* owner, void* data) {
|
||||||
if (!g_pCompositor->getMonitorFromID(layersurface->monitorID))
|
if (!g_pCompositor->getMonitorFromID(layersurface->monitorID))
|
||||||
Debug::log(WARN, "Layersurface destroyed on an invalid monitor (removed?)");
|
Debug::log(WARN, "Layersurface destroyed on an invalid monitor (removed?)");
|
||||||
|
|
||||||
if (!layersurface->fadingOut && PMONITOR) {
|
if (!layersurface->fadingOut) {
|
||||||
if (layersurface->mapped) {
|
if (layersurface->mapped) {
|
||||||
Debug::log(LOG, "Forcing an unmap of a LS that did a straight destroy!");
|
Debug::log(LOG, "Forcing an unmap of a LS that did a straight destroy!");
|
||||||
listener_unmapLayerSurface(layersurface, nullptr);
|
listener_unmapLayerSurface(layersurface, nullptr);
|
||||||
|
@ -157,6 +157,14 @@ void Events::listener_unmapLayerSurface(void* owner, void* data) {
|
||||||
|
|
||||||
if (!g_pCompositor->getMonitorFromID(layersurface->monitorID)) {
|
if (!g_pCompositor->getMonitorFromID(layersurface->monitorID)) {
|
||||||
Debug::log(WARN, "Layersurface unmapping on invalid monitor (removed?) ignoring.");
|
Debug::log(WARN, "Layersurface unmapping on invalid monitor (removed?) ignoring.");
|
||||||
|
|
||||||
|
g_pCompositor->m_vSurfacesFadingOut.push_back(layersurface);
|
||||||
|
|
||||||
|
layersurface->mapped = false;
|
||||||
|
|
||||||
|
layersurface->fadingOut = true;
|
||||||
|
|
||||||
|
layersurface->alpha.setValueAndWarp(0.f);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue