mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 22:22:00 -07:00
renderer: don't translate surface box on interactive resizes with non-updated sizes
closes #5135
This commit is contained in:
@@ -97,7 +97,8 @@ static void renderSurface(struct wlr_surface* surface, int x, int y, void* data)
|
||||
Vector2D{windowBox.w * (PWINDOW->m_vReportedSize.x / PWINDOW->m_vRealSize.value().x), windowBox.h * (PWINDOW->m_vReportedSize.y / PWINDOW->m_vRealSize.value().y)};
|
||||
Vector2D correct = Vector2D{windowBox.w, windowBox.h} - size;
|
||||
|
||||
windowBox.translate(correct / 2.0);
|
||||
if (!INTERACTIVERESIZEINPROGRESS)
|
||||
windowBox.translate(correct / 2.0);
|
||||
|
||||
windowBox.w = size.x;
|
||||
windowBox.h = size.y;
|
||||
|
Reference in New Issue
Block a user