diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-10-22 16:58:06 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-10-22 16:58:06 +0100 |
| commit | 59f27e7f570170783ac01fb46a0ff90e14de53e6 (patch) | |
| tree | c3435a57d4c1b06515e40f43e28b813c523af182 /src/Window.cpp | |
| parent | edb26e03063d8001f69712a6aa82d30610589bcb (diff) | |
compositor: send preferred scale and transform events to surfaces
fixes #3635
Diffstat (limited to 'src/Window.cpp')
| -rw-r--r-- | src/Window.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Window.cpp b/src/Window.cpp index af5015d4..65619585 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -325,7 +325,8 @@ void CWindow::updateSurfaceOutputs() { m_pWLSurface.wlr(), [](wlr_surface* surf, int x, int y, void* data) { const auto PMONITOR = g_pCompositor->getMonitorFromID(((CWindow*)data)->m_iMonitorID); - g_pProtocolManager->m_pFractionalScaleProtocolManager->setPreferredScaleForSurface(surf, PMONITOR ? PMONITOR->scale : 1.f); + g_pCompositor->setPreferredScaleForSurface(surf, PMONITOR ? PMONITOR->scale : 1.f); + g_pCompositor->setPreferredTransformForSurface(surf, PMONITOR->transform); }, this); } |
