mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 18:46:00 +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);
|
||||
|
||||
// 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);
|
||||
}
|
|
@ -223,6 +223,9 @@ void CKeybindManager::changeworkspace(std::string args) {
|
|||
// focus
|
||||
g_pInputManager->refocus();
|
||||
|
||||
// mark the monitor dirty
|
||||
g_pHyprRenderer->damageMonitor(PMONITOR);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue