From 280ef714489d45a9de0e63ed02b3b07f81ec0181 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 21 Apr 2023 17:33:57 +0100 Subject: [PATCH] calculate full size more reasonably part 2 --- src/WallpaperEngine/Render/Drivers/Output/CWaylandOutput.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/WallpaperEngine/Render/Drivers/Output/CWaylandOutput.cpp b/src/WallpaperEngine/Render/Drivers/Output/CWaylandOutput.cpp index 726a291..b91de73 100644 --- a/src/WallpaperEngine/Render/Drivers/Output/CWaylandOutput.cpp +++ b/src/WallpaperEngine/Render/Drivers/Output/CWaylandOutput.cpp @@ -23,6 +23,8 @@ void CWaylandOutput::updateViewports() { m_viewports[o->name] = {{0, 0, o->lsSize.x * o->scale, o->lsSize.y * o->scale}, o->name}; fullw = fullw + glm::ivec2{o->lsSize.x * o->scale, 0}; + if (o->lsSize.y > fullw.y) + fullw.y = o->lsSize.y; } m_fullWidth = fullw.x;