renderer: fix rounding of the size of fractionally scaled monitors (#5748)

This commit is contained in:
eriedaberrie 2024-04-25 10:52:49 -07:00 committed by GitHub
parent 0652a20bd3
commit faa9017043
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -2260,7 +2260,7 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR
int x, y;
wlr_output_transformed_resolution(pMonitor->output, &x, &y);
pMonitor->vecSize = (Vector2D(x, y) / pMonitor->scale).floor();
pMonitor->vecSize = (Vector2D(x, y) / pMonitor->scale).round();
pMonitor->vecTransformedSize = Vector2D(x, y);
if (pMonitor->createdByUser) {