From 5e9aeb37d503c06d59808a97928af5b7d5320923 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sat, 8 Oct 2016 19:19:07 +0200 Subject: [PATCH] Set GDK backend to x11 explicitly. --- src/input.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/input.c b/src/input.c index 53fa7fb..6c4e061 100644 --- a/src/input.c +++ b/src/input.c @@ -19,22 +19,9 @@ void setup_input_devices (GromitData *data) { /* - first, check platform + we run fine under XWayland, but not native Wayland */ - gchar *backend; - g_printerr("Supported backends: "); -#ifdef GDK_WINDOWING_X11 - g_printerr("x11 "); - if (GDK_IS_X11_DISPLAY(data->display)) - backend = "x11"; -#endif -#ifdef GDK_WINDOWING_WAYLAND - g_printerr("wayland "); - if (GDK_IS_WAYLAND_DISPLAY(data->display)) - backend = "wayland"; -#endif - g_printerr("\nUsing backend: %s\n", backend); - + gdk_set_allowed_backends ("x11"); /* ungrab all */ release_grab (data, NULL);