xserver: Branch 'master' - 3 commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Nov 12 08:34:15 UTC 2020


 configure.ac                 |    1 
 hw/xwayland/Makefile.am      |    4 +
 hw/xwayland/man/Makefile.am  |    2 
 hw/xwayland/man/Xwayland.man |   93 +++++++++++++++++++++++++++++++++++++++++++
 hw/xwayland/meson.build      |    7 +++
 hw/xwayland/xwayland.c       |    3 +
 6 files changed, 110 insertions(+)

New commits:
commit 28ed4b95e90fb225fc32cfdce16df603ab600fcd
Author: Olivier Fourdan <ofourdan at redhat.com>
Date:   Tue Nov 10 10:40:05 2020 +0100

    xwayland: Add a man page
    
    Xwayland was missing a man page, add one.
    
    Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>
    Reviewed-by: Martin Peres <martin.peres at mupuf.org>

diff --git a/configure.ac b/configure.ac
index 1333584c9..96e918ad9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2518,6 +2518,7 @@ hw/kdrive/ephyr/Makefile
 hw/kdrive/ephyr/man/Makefile
 hw/kdrive/src/Makefile
 hw/xwayland/Makefile
+hw/xwayland/man/Makefile
 hw/xwayland/xwayland.pc
 test/Makefile
 xserver.ent
diff --git a/hw/xwayland/Makefile.am b/hw/xwayland/Makefile.am
index cc8a05471..d3dd54364 100644
--- a/hw/xwayland/Makefile.am
+++ b/hw/xwayland/Makefile.am
@@ -1,3 +1,7 @@
+SUBDIRS = man
+
+DIST_SUBDIRS = man
+
 bindir = @xwayland_path@
 bin_PROGRAMS = Xwayland
 
diff --git a/hw/xwayland/man/Makefile.am b/hw/xwayland/man/Makefile.am
new file mode 100644
index 000000000..6e4b59e17
--- /dev/null
+++ b/hw/xwayland/man/Makefile.am
@@ -0,0 +1,2 @@
+include $(top_srcdir)/manpages.am
+appman_PRE = Xwayland.man
diff --git a/hw/xwayland/man/Xwayland.man b/hw/xwayland/man/Xwayland.man
new file mode 100644
index 000000000..c5e59c365
--- /dev/null
+++ b/hw/xwayland/man/Xwayland.man
@@ -0,0 +1,93 @@
+'\" t
+.\"
+.\" Copyright 1984 - 1991, 1993, 1994, 1998  The Open Group
+.\"
+.\" Permission to use, copy, modify, distribute, and sell this software and its
+.\" documentation for any purpose is hereby granted without fee, provided that
+.\" the above copyright notice appear in all copies and that both that
+.\" copyright notice and this permission notice appear in supporting
+.\" documentation.
+.\"
+.\" The above copyright notice and this permission notice shall be included
+.\" in all copies or substantial portions of the Software.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+.\" IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
+.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+.\" OTHER DEALINGS IN THE SOFTWARE.
+.\"
+.\" Except as contained in this notice, the name of The Open Group shall
+.\" not be used in advertising or otherwise to promote the sale, use or
+.\" other dealings in this Software without prior written authorization
+.\" from The Open Group.
+.\" shorthand for double quote that works everywhere.
+.ds q \N'34'
+.TH XWAYLAND 1 @xorgversion@
+.SH NAME
+Xwayland \- an X server for running X clients under Wayland.
+.SH SYNOPSIS
+.B Xwayland
+[option ...]
+.SH DESCRIPTION
+.I Xwayland
+is an X server and a Wayland client. It plays the role of a proxy between
+legacy X clients which do not support the Wayland protocols and the Wayland
+server.
+.PP
+Usually, \fIXwayland\fP is spawned automatically by the Wayland server
+and runs rootless so that X clients integrate seamlessly with the rest
+of the Wayland desktop. It is however possible for a user to launch Xwayland
+non-rootless, mainly for testing purposes.
+.PP
+Like all of the X servers, \fIXwayland\fP accepts the command line options
+described in the \fIXserver\fP(@miscmansuffix@) manual page.
+The following additional arguments are supported as well.
+.TP 8
+.B \-eglstream
+Use EGLStream backend for NVidia GPUs. If \fIXwayland\fP was compiled with
+EGLStream support, this option will instruct \fIXwayland\fP to try that
+backend first, then fallback to the GBM backend if EGLStream is not supported
+by the Wayland server. Without this option, \fIXwayland\fP tries the GBM
+backend first, and fallback to EGLStream if GBM is not usable.
+.TP 8
+.B \-initfd \fIfd\fP
+Add the given \fIfd\fP as a listen socket for initialization of X clients.
+This options is aimed at \fIWayland\fP servers which run \fIXwayland\fP
+on-demand, to be able to spawn specific X clients which need to complete
+before other regular X clients can connect to \fIXwayland\fP, like \fIxrdb\fP.
+.TP 8
+.B \-listen \fIfd\fP
+deprecated, use \fI\-listenfd\fP instead.
+.TP 8
+.B \-listenfd \fIfd\\fP
+Add given fd as a listen socket. This option is used by the \fIWayland\fP
+server to pass \fIXwayland\fP the socket where X clients connect.
+.TP 8
+.B \-rootless
+Run \fIXwayland\fP rootless, so that X clients integrate seamlessly with
+Wayland clients in a Wayland desktop. That requires the Wayland server
+to be an X window manager as well.
+.TP 8
+.BI \-shm
+Force the shared memory backend instead of glamor (if available) for passing
+buffers to the Wayland server.
+.TP 8
+.BI \-version
+Show the server version and exit.
+.TP 8
+.B \-wm \fIfd\fP
+This option is used by the \fIWayland\fP server to pass \fIXwayland\fP
+the socket where the X window manager client connects, when \fIXwayland\fP
+is running with \fI-rootless\fP.
+.SH ENVIRONMENT
+.TP 8
+.B WAYLAND_DISPLAY
+the name of the display of the Wayland server.
+.TP 8
+.B XWAYLAND_NO_GLAMOR
+disable glamor and DRI3 support in \fIXwayland\fP, for testing purposes.
+.SH "SEE ALSO"
+General information: \fIX\fP(@miscmansuffix@)
diff --git a/hw/xwayland/meson.build b/hw/xwayland/meson.build
index c41080f20..d6772957b 100644
--- a/hw/xwayland/meson.build
+++ b/hw/xwayland/meson.build
@@ -148,3 +148,10 @@ configure_file(
                             get_option('libdir'),
                             'pkgconfig'),
 )
+
+xwayland_manpage = configure_file(
+    input: 'man/Xwayland.man',
+    output: 'Xwayland.1',
+    configuration: manpage_config,
+)
+install_man(xwayland_manpage)
commit d14cef853af52408e7ddba31b72cf5ac14389754
Author: Olivier Fourdan <ofourdan at redhat.com>
Date:   Tue Nov 10 10:02:39 2020 +0100

    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 at redhat.com>
    Reviewed-by: Martin Peres <martin.peres at mupuf.org>

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");
 }
commit d163f938a00c177c5ff28e779993f18ee69476d4
Author: Olivier Fourdan <ofourdan at redhat.com>
Date:   Tue Nov 10 09:53:57 2020 +0100

    xwayland: Add help entry for -shm
    
    The command line options "-shm" is used to instruct Xwayland to prefer
    shared-memory for passing buffers to the Wayland server, rather than
    using glamor and DRI3.
    
    The option was there from the beginning, yet not documented in the
    "-help" message.
    
    Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>
    Reviewed-by: Martin Peres <martin.peres at mupuf.org>

diff --git a/hw/xwayland/xwayland.c b/hw/xwayland/xwayland.c
index 380c9c849..a02651411 100644
--- a/hw/xwayland/xwayland.c
+++ b/hw/xwayland/xwayland.c
@@ -90,6 +90,7 @@ ddxUseMsg(void)
     ErrorF("-listenfd fd           add given fd as a listen socket\n");
     ErrorF("-listen fd             deprecated, use \"-listenfd\" instead\n");
     ErrorF("-eglstream             use eglstream backend for nvidia GPUs\n");
+    ErrorF("-shm                   use shared memory for passing buffers\n");
     ErrorF("-version               show the server version and exit\n");
 }
 


More information about the xorg-commit mailing list