From 2b7e367207f18a4e965e0bf1105e3af5b05ce7d6 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Thu, 5 Dec 2013 16:56:10 +0100 Subject: Tell gtk+ we really need the wayland backend So that it doesn't choose the x11 backend when DISPLAY is set, e.g. when running weston on x11 or when xwayland is available. Require gtk+ 3.10 for this. --- shell/gtk-shell.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shell/gtk-shell.c') diff --git a/shell/gtk-shell.c b/shell/gtk-shell.c index c060b49..86eeef5 100644 --- a/shell/gtk-shell.c +++ b/shell/gtk-shell.c @@ -254,6 +254,8 @@ main(int argc, char *argv[]) { struct desktop *desktop; + gdk_set_allowed_backends ("wayland"); + gtk_init(&argc, &argv); desktop = malloc(sizeof *desktop); -- cgit v1.3.1