From 8369f2980aa0c98f087aaf2133c94af8027f14fb Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 5 May 2022 13:48:22 +0200 Subject: [PATCH] =?UTF-8?q?crucial=20fixes=20to=20full=20damage=20tracking?= =?UTF-8?q?=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit should now be mostly usable --- src/events/Layers.cpp | 5 ++--- src/managers/KeybindManager.cpp | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp index 8b4e54fb..d3cbdef0 100644 --- a/src/events/Layers.cpp +++ b/src/events/Layers.cpp @@ -180,7 +180,6 @@ void Events::listener_commitLayerSurface(void* owner, void* data) { layersurface->position = Vector2D(layersurface->geometry.x, layersurface->geometry.y); - // i know i could reuse the last geomFixed box, but this way my stupid linter doesn't give me errors, and for some reason if i do = {...} it does, even though it compiles - wlr_box geomFixedAfter = {layersurface->geometry.x + PMONITOR->vecPosition.x, layersurface->geometry.y + PMONITOR->vecPosition.y, layersurface->geometry.width, layersurface->geometry.height}; - g_pHyprRenderer->damageBox(&geomFixedAfter); + // TODO: optimize this. This does NOT need to be here but it prevents some issues with full DT. + g_pHyprRenderer->damageMonitor(PMONITOR); } \ No newline at end of file diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index f249fa00..900e1e00 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -223,6 +223,9 @@ void CKeybindManager::changeworkspace(std::string args) { // focus g_pInputManager->refocus(); + // mark the monitor dirty + g_pHyprRenderer->damageMonitor(PMONITOR); + return; }