Skip to content

Commit

Permalink
xwayland: Remove delta for real position with xwayland zero scaling (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dnvery authored May 14, 2024
1 parent ba69652 commit 1584679
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/events/Windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1144,9 +1144,7 @@ void Events::listener_unmanagedSetGeometry(void* owner, void* data) {

if (*PXWLFORCESCALEZERO) {
if (const auto PMONITOR = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID); PMONITOR) {
const Vector2D DELTA = PWINDOW->m_vRealSize.goal() - PWINDOW->m_vRealSize.goal() / PMONITOR->scale;
PWINDOW->m_vRealSize.setValueAndWarp(PWINDOW->m_vRealSize.goal() / PMONITOR->scale);
PWINDOW->m_vRealPosition.setValueAndWarp(PWINDOW->m_vRealPosition.goal() + DELTA / 2.0);
}
}

Expand Down

0 comments on commit 1584679

Please sign in to comment.