Parcourir la source

fix monitor geom

vaxerski il y a 3 ans
Parent
commit
fd810295d7
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/WallpaperEngine/Render/Drivers/CWaylandOpenGLDriver.cpp

+ 2 - 1
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) {