]> source.dussan.org Git - tigervnc.git/commitdiff
Fix missing XRandR build 1636/head
authorPierre Ossman <ossman@cendio.se>
Wed, 14 Jun 2023 15:13:21 +0000 (17:13 +0200)
committerPierre Ossman <ossman@cendio.se>
Wed, 14 Jun 2023 15:13:21 +0000 (17:13 +0200)
Make sure we can actually build without XRandR libraries.

unix/x0vncserver/XDesktop.cxx

index e9217eed458d4cb3bc912009193796fef4227a10..b3d5e54c48a6ea88ccfdb101a70ed4019eaa84d1 100644 (file)
@@ -27,6 +27,7 @@
 #include <unistd.h>
 
 #include <rfb/LogWriter.h>
+#include <rfb/Exception.h>
 
 #include <x0vncserver/XDesktop.h>
 
@@ -43,7 +44,6 @@
 #endif
 #ifdef HAVE_XRANDR
 #include <X11/extensions/Xrandr.h>
-#include <rfb/Exception.h>
 #include <RandrGlue.h>
 extern "C" {
 void vncSetGlueContext(Display *dpy, void *res);
@@ -787,6 +787,9 @@ unsigned int XDesktop::setScreenLayout(int fb_width, int fb_height,
   return ret;
 
 #else
+  (void)fb_width;
+  (void)fb_height;
+  (void)layout;
   return rfb::resultProhibited;
 #endif /* HAVE_XRANDR */
 }