Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Gnome/docs/reference/gtk/   (Gnome Linux Desktop Version 4.23.2©)  Datei vom 30.5.2026 mit Größe 725 B image not shown  

Quelle  wayland.md   Sprache: unbekannt

 
Spracherkennung für: .md vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

Title: Using GTK with Wayland
Slug: gtk-wayland

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 `GDK_BACKEND=wayland`.

On UNIX, the Wayland backend is enabled by default, so you don't need to
do anything special when compiling it, and everything should "just work."

## Wayland-specific environment variables

### WAYLAND_DISPLAY

Specifies the name of the Wayland display to use. Typically, wayland-0
or wayland-1.

### XDG_RUNTIME_DIR

Used to locate the Wayland socket to use.

## Wayland-specific APIs

See the [documentation](https://docs.gtk.org/gdk4-wayland/) for
Wayland-specific GDK APIs.

[Dauer der Verarbeitung: 0.11 Sekunden, vorverarbeitet 2026-07-02]