Skip to content

Commit

Permalink
Set GDK backend to x11 explicitly.
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Oct 8, 2016
1 parent 7bc5f21 commit 5e9aeb3
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5e9aeb3

Please sign in to comment.