Bläddra i källkod

fix monitor geom

vaxerski 3 år sedan
förälder
incheckning
fd810295d7
1 ändrade filer med 2 tillägg och 1 borttagningar
  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) {