mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 04:45:59 +01:00
10
This commit is contained in:
parent
3b7ae83323
commit
0ad0bb2819
1 changed files with 5 additions and 0 deletions
|
@ -101,6 +101,9 @@ void Events::listener_mapLayerSurface(void* owner, void* data) {
|
|||
|
||||
layersurface->layerSurface->mapped = true;
|
||||
|
||||
if (!layersurface->hyprListener_commitLayerSurface.isConnected())
|
||||
layersurface->hyprListener_commitLayerSurface.initCallback(&layersurface->layerSurface->surface->events.commit, &Events::listener_commitLayerSurface, layersurface, "layerSurface");
|
||||
|
||||
// fix if it changed its mon
|
||||
const auto PMONITOR = g_pCompositor->getMonitorFromOutput(layersurface->layerSurface->output);
|
||||
|
||||
|
@ -148,6 +151,8 @@ void Events::listener_unmapLayerSurface(void* owner, void* data) {
|
|||
return;
|
||||
}
|
||||
|
||||
layersurface->hyprListener_commitLayerSurface.removeCallback();
|
||||
|
||||
// make a snapshot and start fade
|
||||
g_pHyprOpenGL->makeLayerSnapshot(layersurface);
|
||||
layersurface->alpha = 0.f;
|
||||
|
|
Loading…
Reference in a new issue