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/Compositor.cpp | |
| parent | edb26e03063d8001f69712a6aa82d30610589bcb (diff) | |
compositor: send preferred scale and transform events to surfaces
fixes #3635
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 704ac64a..cc9d4244 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2677,3 +2677,12 @@ void CCompositor::leaveUnsafeState() { m_pUnsafeOutput = nullptr; } + +void CCompositor::setPreferredScaleForSurface(wlr_surface* pSurface, double scale) { + g_pProtocolManager->m_pFractionalScaleProtocolManager->setPreferredScaleForSurface(pSurface, scale); + wlr_surface_set_preferred_buffer_scale(pSurface, scale); +} + +void CCompositor::setPreferredTransformForSurface(wlr_surface* pSurface, wl_output_transform transform) { + wlr_surface_set_preferred_buffer_transform(pSurface, transform); +}
\ No newline at end of file |
