XWAYLAND(1)
โจ XWAYLAND(1) โจ
Okay bestie, welcome to the Xwayland page ๐ฆ This one lives in the General Commands Manual, and it's giving X server energy for Wayland ๐
๐ NAME
Xwayland is an X server for running X clients under Wayland. โจ
๐ SYNOPSIS
Xwayland [option ...]
๐ DESCRIPTION
Okay so Xwayland is an X server AND a Wayland client, which is honestly so iconic ๐ It's basically a proxy that sits between old-school X clients that don't speak the Wayland protocols and the Wayland server. ๐ซถ
Usually the Wayland server spawns Xwayland automatically, and it runs rootless so X clients blend right in with the rest of the Wayland desktop. Lowkey perfect. โจ You can launch Xwayland non-rootless yourself, but that's mainly for testing, so don't get it twisted ๐
Like all the X servers, Xwayland takes the command line options from the Xserver(7) manual page. Those are all valid! Here are the extra ones Xwayland supports too ๐ธ
โ๏ธ OPTIONS
-decorateโ Adds decorations to the Xwayland root window when running rootful. ๐
This does nothing if Xwayland was built without libdecor support (optional).
This is NOT compatible with rootless mode (-rootless).
-enable-ei-portalโ Turns on support for the XDG portal for input emulation. ๐ง
A Wayland compositor running nested should NOT use this with Xwayland.
This does nothing if the compositor doesn't support the relevant XDG portal, or if Xwayland wasn't compiled with EI and OEFFIS support.
-fullscreenโ Makes the Xwayland window fullscreen when running rootful. ๐ฅ
Not compatible with rootless mode (-rootless).
-geometry WxHโ Sets the Xwayland window geometry toWxHwhen running rootful. ๐ฆ
Not compatible with rootless mode (-rootless).
-glamor [gl|es|off]โ Picks the rendering API for Glamor acceleration. The possible options areglandes. If Xwayland was compiled with Glamor support, this tells it to use ONLY the API you requested. If you set this tooff, it works the same as the-shmoption. Without this option and without-shm, Xwayland tries OpenGL first, and falls back to GL ES if the GL version is less than 2.1. ๐
Not compatible with the -shm option.
-hidpiโ Adjusts to the scale of the outputs when running rootful in windowing mode. โจ
Not compatible with rootless mode (-rootless).
-host-grabโ Disables host keyboard shortcuts and confines the pointer when running rootful. ๐ซฃ This relies on the protocol for inhibiting compositor keyboard shortcuts and on the protocol for pointer locking and confinement, so it may do nothing if your Wayland compositor doesn't support those protocols.
To release the keyboard and pointer, press [CTRL]+[SHIFT] together. ๐
Not compatible with rootless mode (-rootless).
-initfd fdโ Adds the given fd as a listen socket for initializing X clients. This one is for Wayland servers that run Xwayland on-demand, so they can spawn special X clients that need to finish first before other regular X clients can connect, likexrdb. ๐-listen fdโ Deprecated, so use-listenfdinstead. ๐-listenfd fdโ Adds the given fd as a listen socket. The Wayland server uses this to hand Xwayland the socket where X clients connect. ๐ง-noTouchPointerEmulationโ Disables touch pointer emulation. This lets the Wayland compositor run its own pointer emulation for X11 clients that don't support touch input. ๐-force-xrandr-emulationโ Forces extra non-native modes to be exposed when viewporter isn't supported by the Wayland compositor. ๐-nokeymapโ Tells Xwayland to ignore the keymap set by the Wayland compositor. ๐ โโ๏ธ
By default, Xwayland (like any Wayland client) uses the keymap the Wayland compositor sets through the standard Wayland protocol. This option is for specific situations where you want the X11 clients to control the keymap in Xwayland instead.
-output nameโ Picks which output fullscreen rootful Xwayland should go on. The name has to match an existing Wayland output, and you can find those names with wayland-info. ๐ฅ๏ธ
If no matching output is found, the Wayland compositor decides where the fullscreen rootful Xwayland window goes.
This does nothing if Xwayland isn't running fullscreen rootful.
-rootlessโ Runs Xwayland rootless, so X clients blend seamlessly with Wayland clients on a Wayland desktop. ๐ฆ That also means the Wayland server has to be an X window manager too.-shmโ Forces the shared memory backend, instead of glamor (if it's available), for passing buffers to the Wayland server. ๐พ
Not compatible with the -glamor option.
-verbose [n]โ Sets the verbosity level for info printed on stderr. If you don't give annvalue, every time you use this option bumps the verbosity up by one. If you DO give ann, the verbosity gets set to that exact number. The default verbosity level is0. ๐ข-versionโ Shows the server version and exits. ๐-wm fdโ The Wayland server uses this to hand Xwayland the socket where the X window manager client connects, when Xwayland is running with-rootless. ๐
๐ธ ENVIRONMENT
WAYLAND_DISPLAYโ the name of the display of the Wayland server. ๐ฅ๏ธXWAYLAND_NO_GLAMORโ Disables glamor and DRI3 support in Xwayland, for testing purposes. ๐งช
๐ SEE ALSO
General information: X(7), wayland-info(7) ๐
Slay, you made it through the whole page ๐ โจ Xwayland is X Version 11, from xorg-server 24.1.14, and it's still XWAYLAND(1) forever ๐ซถ๐
๐ฆ where this page comes from
- alpine 3.24: xwayland-doc 24.1.14-r0 ยท MIT
- arch rolling: xorg-xwayland 24.1.14-1 ยท LicenseRef-Adobe-Display-PostScript AND BSD-3-Clause AND LicenseRef-DEC-3-Clause AND HPND AND LicenseRef-HPND-sell-MIT-disclaimer-xserver AND HPND-sell-variant AND ICU AND ISC AND MIT AND MIT-open-group AND NTP AND SGI-B-2.0 AND SMLNJ AND X11 AND X11-distribute-modifications-variant
- fedora 43: xorg-x11-server-Xwayland 24.1.14-1.fc43 ยท MIT
- fedora 43: xorg-x11-server-Xwayland 24.1.14-1.fc43 ยท MIT
- fedora 44: xorg-x11-server-Xwayland 24.1.14-1.fc44 ยท MIT
- fedora 44: xorg-x11-server-Xwayland 24.1.14-1.fc44 ยท MIT
- fedora 44: xorg-x11-server-Xwayland 24.1.14-2.fc44 ยท MIT
- fedora 44: xorg-x11-server-Xwayland 24.1.14-2.fc44 ยท MIT
- nixos 26.05: xwayland 24.1.14
- nixpkgs unstable: xwayland 24.1.14
- ubuntu stonking: xwayland 2:24.1.14-1
- Copyright 1984 - 1991, 1993, 1994, 1998 The Open Group
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms