Package: gdk

Function gdk-set-allowed-backends

Lambda List

gdk-set-allowed-backends (backends)

Arguments

backends -- a string with a comma-separated list of backends

Details

Sets a list of backends that GDK should try to use. This can be be useful if your application does not work with certain GDK backends. By default, GDK tries all included backends.

For example,
(gdk-set-allowed-backends "wayland,quartz,*)  
instructs GDK to try the Wayland backend first, followed by the Quartz backend, and then all others.

If the GDK_BACKEND environment variable is set, it determines what backends are tried in what order, while still respecting the set of allowed backends that are specified by this function.

The possible backend names are x11, win32, quartz, broadway, wayland. You can also include a * in the list to try all remaining backends.

This call must happen prior to the gdk-display-open, gtk_init(), gtk_init_with_args() or gtk_init_check() functions in order to take effect.
 

See also

2021-12-13