summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2020-11-10 10:02:39 +0100
committerOlivier Fourdan <ofourdan@redhat.com>2020-11-10 14:09:41 +0100
commitd14cef853af52408e7ddba31b72cf5ac14389754 (patch)
treef59226d48bb3126c74479191aaa4690229b64938
parentd163f938a00c177c5ff28e779993f18ee69476d4 (diff)
xwayland: Do not list option "-eglstream" if not supported
As Xwayland is usually spawned by the Wayland server/compositor, its command line options are not always adjustable. Yet, if EGLStream is not supported in a given Xwayland build, the option will do nothing (yet we must still accept it otherwise Xwayland would refuse to run if the Wayland compositor uses it). If Xwayland was built without support for EGLStream, there is not point in showing the option in the help message though. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Reviewed-by: Martin Peres <martin.peres@mupuf.org>
-rw-r--r--hw/xwayland/xwayland.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xwayland/xwayland.c b/hw/xwayland/xwayland.c
index a02651411..ee7dc312c 100644
--- a/hw/xwayland/xwayland.c
+++ b/hw/xwayland/xwayland.c
@@ -89,7 +89,9 @@ ddxUseMsg(void)
ErrorF("-initfd fd add given fd as a listen socket for initialization clients\n");
ErrorF("-listenfd fd add given fd as a listen socket\n");
ErrorF("-listen fd deprecated, use \"-listenfd\" instead\n");
+#ifdef XWL_HAS_EGLSTREAM
ErrorF("-eglstream use eglstream backend for nvidia GPUs\n");
+#endif
ErrorF("-shm use shared memory for passing buffers\n");
ErrorF("-version show the server version and exit\n");
}