diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 681cbf86..f8d61501 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2712,7 +2712,7 @@ void CCompositor::leaveUnsafeState() { void CCompositor::setPreferredScaleForSurface(wlr_surface* pSurface, double scale) { g_pProtocolManager->m_pFractionalScaleProtocolManager->setPreferredScaleForSurface(pSurface, scale); - wlr_surface_set_preferred_buffer_scale(pSurface, scale); + wlr_surface_set_preferred_buffer_scale(pSurface, static_cast(std::ceil(scale))); } void CCompositor::setPreferredTransformForSurface(wlr_surface* pSurface, wl_output_transform transform) {