diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-04-20 14:14:54 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-04-20 14:19:16 +0100 |
| commit | ea47e8c92ae283c4b41be0aafbdad9b0701a1624 (patch) | |
| tree | 30d064d286864e95c0886cf6177f01d1a41ace64 /src/managers/SessionLockManager.cpp | |
| parent | ea954494024cb596aaf9a40c77c3e0fcaf0e0322 (diff) | |
Fractional-scale: move to new impl
Diffstat (limited to 'src/managers/SessionLockManager.cpp')
| -rw-r--r-- | src/managers/SessionLockManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/managers/SessionLockManager.cpp b/src/managers/SessionLockManager.cpp index a0374b85..d6fc912c 100644 --- a/src/managers/SessionLockManager.cpp +++ b/src/managers/SessionLockManager.cpp @@ -1,6 +1,7 @@ #include "SessionLockManager.hpp" #include "../Compositor.hpp" #include "../config/ConfigValue.hpp" +#include "../protocols/FractionalScale.hpp" static void handleSurfaceMap(void* owner, void* data) { const auto PSURFACE = (SSessionLockSurface*)owner; @@ -74,7 +75,7 @@ void CSessionLockManager::onNewSessionLock(wlr_session_lock_v1* pWlrLock) { PSURFACE->pWlrLockSurface = PWLRSURFACE; PSURFACE->iMonitorID = PMONITOR->ID; - g_pProtocolManager->m_pFractionalScaleProtocolManager->setPreferredScaleForSurface(PSURFACE->pWlrLockSurface->surface, PMONITOR->scale); + PROTO::fractional->sendScale(PSURFACE->pWlrLockSurface->surface, PMONITOR->scale); wlr_session_lock_surface_v1_configure(PWLRSURFACE, PMONITOR->vecSize.x, PMONITOR->vecSize.y); |
