mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 04:05:58 +01:00
renderer: disable surface adjustments for misaligned reported when manual resizing
ref #5135
This commit is contained in:
parent
3162739e1b
commit
0e87a08e15
1 changed files with 2 additions and 3 deletions
|
@ -92,12 +92,11 @@ static void renderSurface(struct wlr_surface* surface, int x, int y, void* data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PSURFACE && PWINDOW && PWINDOW->m_vRealSize.goal() > PWINDOW->m_vReportedSize && PWINDOW->m_vReportedSize > Vector2D{1, 1}) {
|
if (!INTERACTIVERESIZEINPROGRESS && PSURFACE && PWINDOW && PWINDOW->m_vRealSize.goal() > PWINDOW->m_vReportedSize && PWINDOW->m_vReportedSize > Vector2D{1, 1}) {
|
||||||
Vector2D size =
|
Vector2D size =
|
||||||
Vector2D{windowBox.w * (PWINDOW->m_vReportedSize.x / PWINDOW->m_vRealSize.value().x), windowBox.h * (PWINDOW->m_vReportedSize.y / PWINDOW->m_vRealSize.value().y)};
|
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;
|
Vector2D correct = Vector2D{windowBox.w, windowBox.h} - size;
|
||||||
|
|
||||||
if (!INTERACTIVERESIZEINPROGRESS)
|
|
||||||
windowBox.translate(correct / 2.0);
|
windowBox.translate(correct / 2.0);
|
||||||
|
|
||||||
windowBox.w = size.x;
|
windowBox.w = size.x;
|
||||||
|
|
Loading…
Reference in a new issue