mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-27 01:45:58 +01:00
added ls noprocess
This commit is contained in:
parent
53b8263eb1
commit
10a83853ac
3 changed files with 4 additions and 1 deletions
|
@ -72,6 +72,8 @@ void Events::listener_destroyLayerSurface(void* owner, void* data) {
|
||||||
layersurface->fadingOut = true;
|
layersurface->fadingOut = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
layersurface->noProcess = true;
|
||||||
|
|
||||||
layersurface->hyprListener_commitLayerSurface.removeCallback();
|
layersurface->hyprListener_commitLayerSurface.removeCallback();
|
||||||
layersurface->hyprListener_destroyLayerSurface.removeCallback();
|
layersurface->hyprListener_destroyLayerSurface.removeCallback();
|
||||||
layersurface->hyprListener_mapLayerSurface.removeCallback();
|
layersurface->hyprListener_mapLayerSurface.removeCallback();
|
||||||
|
|
|
@ -30,6 +30,7 @@ struct SLayerSurface {
|
||||||
CAnimatedVariable alpha;
|
CAnimatedVariable alpha;
|
||||||
bool fadingOut = false;
|
bool fadingOut = false;
|
||||||
bool readyToDelete = false;
|
bool readyToDelete = false;
|
||||||
|
bool noProcess = false;
|
||||||
|
|
||||||
bool forceBlur = false;
|
bool forceBlur = false;
|
||||||
|
|
||||||
|
|
|
@ -508,7 +508,7 @@ void CHyprRenderer::arrangeLayerArray(SMonitor* pMonitor, const std::list<SLayer
|
||||||
wlr_box full_area = {pMonitor->vecPosition.x, pMonitor->vecPosition.y, pMonitor->vecSize.x, pMonitor->vecSize.y};
|
wlr_box full_area = {pMonitor->vecPosition.x, pMonitor->vecPosition.y, pMonitor->vecSize.x, pMonitor->vecSize.y};
|
||||||
|
|
||||||
for (auto& ls : layerSurfaces) {
|
for (auto& ls : layerSurfaces) {
|
||||||
if (ls->fadingOut || ls->readyToDelete || !ls->layerSurface)
|
if (ls->fadingOut || ls->readyToDelete || !ls->layerSurface || ls->noProcess)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
const auto PLAYER = ls->layerSurface;
|
const auto PLAYER = ls->layerSurface;
|
||||||
|
|
Loading…
Reference in a new issue