From ed2834f45010ed9868611149a2b6e78f8df82ccb Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 20 Jul 2022 23:26:32 +0200 Subject: [PATCH] 11 --- src/events/Layers.cpp | 5 ----- src/render/Renderer.cpp | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp index 0cac38a2..af197168 100644 --- a/src/events/Layers.cpp +++ b/src/events/Layers.cpp @@ -101,9 +101,6 @@ 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); @@ -151,8 +148,6 @@ 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; diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 79b3a8b5..822074c5 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -617,8 +617,8 @@ void CHyprRenderer::arrangeLayersForMonitor(const int& monitor) { PMONITOR->vecReservedBottomRight = PMONITOR->vecReservedBottomRight + Vector2D(ENTRY.right, ENTRY.bottom); // damage the monitor if can - if (PMONITOR->damage) - damageMonitor(PMONITOR); + // if (PMONITOR->damage) + // damageMonitor(PMONITOR); Debug::log(LOG, "Monitor %s layers arranged: reserved: %f %f %f %f", PMONITOR->szName.c_str(), PMONITOR->vecReservedTopLeft.x, PMONITOR->vecReservedTopLeft.y, PMONITOR->vecReservedBottomRight.x, PMONITOR->vecReservedBottomRight.y); }