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; }