<chapter id="gtk-wayland">
  <title>Using GTK with Wayland</title>
  <para>
    The GDK Wayland backend provides support for running GTK
    applications under a Wayland compositor. To run your application in
    this way, select the Wayland backend by setting
    <literal>GDK_BACKEND=wayland</literal>.
  </para>
  <para>
    On UNIX, the Wayland backend is enabled by default, so you don’t
    need to do anything special when compiling it, and everything should
    <quote>just work.</quote>
  </para>
  <sect1 id="wayland-envar">
    <title>Wayland-specific environment variables</title>
    <sect2>
      <title>WAYLAND_DISPLAY</title>
      <para>
        Specifies the name of the Wayland display to use. Typically,
        wayland-0 or wayland-1.
      </para>
    </sect2>
    <sect2>
      <title>XDG_RUNTIME_DIR</title>
      <para>
        Used to locate the Wayland socket to use.
      </para>
    </sect2>
  </sect1>
</chapter>
