From 242c5b2c8af6d89a34ff83089e9e724e32dcb279 Mon Sep 17 00:00:00 2001 From: "Peter Åstrand (astrand)" Date: Wed, 7 Mar 2018 13:00:47 +0100 Subject: 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. --- cmake/StaticBuild.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmake') 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() -- cgit v1.2.3