From fd810295d7aeda3640b870c05fa62c77b3a28cc3 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 19 Apr 2023 20:24:15 +0100 Subject: [PATCH] fix monitor geom --- src/WallpaperEngine/Render/Drivers/CWaylandOpenGLDriver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WallpaperEngine/Render/Drivers/CWaylandOpenGLDriver.cpp b/src/WallpaperEngine/Render/Drivers/CWaylandOpenGLDriver.cpp index 5db5f9d..bbc0c93 100644 --- a/src/WallpaperEngine/Render/Drivers/CWaylandOpenGLDriver.cpp +++ b/src/WallpaperEngine/Render/Drivers/CWaylandOpenGLDriver.cpp @@ -26,7 +26,8 @@ void geometry(void* data, wl_output* output, int32_t x, int32_t y, int32_t width } void mode(void* data, wl_output* output, uint32_t flags, int32_t width, int32_t height, int32_t refresh) { - // ignored + const auto PMONITOR = (SWaylandOutput*)data; + PMONITOR->size = {width, height}; } void done(void* data, wl_output* wl_output) {