aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorPeter Åstrand (astrand) <astrand@cendio.se>2018-03-07 13:00:47 +0100
committerPeter Åstrand (astrand) <astrand@cendio.se>2018-04-09 20:31:38 +0200
commit242c5b2c8af6d89a34ff83089e9e724e32dcb279 (patch)
treea9c1b88bd5313b57bce50998770594e86aa81433 /cmake
parent54f49fded05ba29a93f6b77f8b70316e18342580 (diff)
downloadtigervnc-242c5b2c8af6d89a34ff83089e9e724e32dcb279.tar.gz
tigervnc-242c5b2c8af6d89a34ff83089e9e724e32dcb279.zip
Add RandR support for x0vncserver
Change Xserver screen through libXrandr. For complex configurations, all outputs must have corresponding size modes. As a special case, if the client requests a single screen with an odd size (for example when adjusting the size of a non-fullscreen vncviewer), find a smaller suitable mode, and reduce the framebuffer size as well.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/StaticBuild.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/StaticBuild.cmake b/cmake/StaticBuild.cmake
index 06883c6f..4b58b1de 100644
--- a/cmake/StaticBuild.cmake
+++ b/cmake/StaticBuild.cmake
@@ -109,6 +109,9 @@ if(BUILD_STATIC)
if(X11_Xdamage_LIB)
set(X11_Xdamage_LIB "-Wl,-Bstatic -lXdamage -Wl,-Bdynamic")
endif()
+ if(X11_Xrandr_LIB)
+ set(X11_Xrandr_LIB "-Wl,-Bstatic -lXrandr -lXrender -Wl,-Bdynamic")
+ endif()
endif()
endif()