mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 22:25:58 +01:00
crucial fixes to full damage tracking 🎉
should now be mostly usable
This commit is contained in:
parent
500cbd135f
commit
8369f2980a
2 changed files with 5 additions and 3 deletions
|
@ -180,7 +180,6 @@ void Events::listener_commitLayerSurface(void* owner, void* data) {
|
||||||
|
|
||||||
layersurface->position = Vector2D(layersurface->geometry.x, layersurface->geometry.y);
|
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
|
// TODO: optimize this. This does NOT need to be here but it prevents some issues with full DT.
|
||||||
wlr_box geomFixedAfter = {layersurface->geometry.x + PMONITOR->vecPosition.x, layersurface->geometry.y + PMONITOR->vecPosition.y, layersurface->geometry.width, layersurface->geometry.height};
|
g_pHyprRenderer->damageMonitor(PMONITOR);
|
||||||
g_pHyprRenderer->damageBox(&geomFixedAfter);
|
|
||||||
}
|
}
|
|
@ -223,6 +223,9 @@ void CKeybindManager::changeworkspace(std::string args) {
|
||||||
// focus
|
// focus
|
||||||
g_pInputManager->refocus();
|
g_pInputManager->refocus();
|
||||||
|
|
||||||
|
// mark the monitor dirty
|
||||||
|
g_pHyprRenderer->damageMonitor(PMONITOR);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue