From 3e7ba8500f966f6985714326d8371377a563a0cf Mon Sep 17 00:00:00 2001 From: vaxerski Date: Sun, 5 Feb 2023 11:10:46 +0000 Subject: [PATCH] conform to the wp-fs-v1 spec with buffer scale --- src/Hyprpaper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hyprpaper.cpp b/src/Hyprpaper.cpp index d7806ed..59539b5 100644 --- a/src/Hyprpaper.cpp +++ b/src/Hyprpaper.cpp @@ -474,7 +474,7 @@ void CHyprpaper::renderWallpaperForMonitor(SMonitor* pMonitor) { cairo_restore(PCAIRO); wl_surface_attach(pMonitor->pCurrentLayerSurface->pSurface, PBUFFER->buffer, 0, 0); - wl_surface_set_buffer_scale(pMonitor->pCurrentLayerSurface->pSurface, pMonitor->scale); + wl_surface_set_buffer_scale(pMonitor->pCurrentLayerSurface->pSurface, pMonitor->pCurrentLayerSurface->pFractionalScaleInfo ? 1 : pMonitor->scale); wl_surface_damage_buffer(pMonitor->pCurrentLayerSurface->pSurface, 0, 0, 0xFFFF, 0xFFFF); if (pMonitor->pCurrentLayerSurface->pFractionalScaleInfo) { Debug::log(LOG, "Submitting viewport dest size %ix%i for %x", static_cast(std::round(DIMENSIONS.x)), static_cast(std::round(DIMENSIONS.y)), pMonitor->pCurrentLayerSurface);