summaryrefslogtreecommitdiff
path: root/src/desktop/view/Window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/view/Window.cpp')
-rw-r--r--src/desktop/view/Window.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/desktop/view/Window.cpp b/src/desktop/view/Window.cpp
index 4506d5fb..57dae3ec 100644
--- a/src/desktop/view/Window.cpp
+++ b/src/desktop/view/Window.cpp
@@ -1378,7 +1378,7 @@ Vector2D CWindow::realToReportPosition() {
if (!m_isX11)
return m_realPosition->goal();
- return g_pXWaylandManager->waylandToXWaylandCoords(m_realPosition->goal());
+ return g_pXWaylandManager->waylandToXWaylandCoords(m_realPosition->goal(), m_monitor.lock());
}
Vector2D CWindow::xwaylandSizeToReal(Vector2D size) {
@@ -1392,7 +1392,7 @@ Vector2D CWindow::xwaylandSizeToReal(Vector2D size) {
}
Vector2D CWindow::xwaylandPositionToReal(Vector2D pos) {
- return g_pXWaylandManager->xwaylandToWaylandCoords(pos);
+ return g_pXWaylandManager->xwaylandToWaylandCoords(pos, m_monitor.lock());
}
void CWindow::updateX11SurfaceScale() {
@@ -2462,9 +2462,8 @@ void CWindow::unmanagedSetGeometry() {
static auto PXWLFORCESCALEZERO = CConfigValue<Hyprlang::INT>("xwayland:force_zero_scaling");
- const auto LOGICALPOS = g_pXWaylandManager->xwaylandToWaylandCoords(m_xwaylandSurface->m_geometry.pos());
-
const auto PMONITOR = m_monitor.lock();
+ const auto LOGICALPOS = g_pXWaylandManager->xwaylandToWaylandCoords(m_xwaylandSurface->m_geometry.pos(), PMONITOR);
const auto XWLSCALE = (*PXWLFORCESCALEZERO && PMONITOR) ? PMONITOR->m_scale : 1.0;
const auto LOGICALGEOSIZE = m_xwaylandSurface->m_geometry.size() / XWLSCALE;