Skip to content

Commit

Permalink
input: remove GDK backend check
Browse files Browse the repository at this point in the history
We only support 'x11' for the time being.

re #27
  • Loading branch information
bk138 committed Nov 8, 2020
1 parent 81c2bd2 commit c4c0ac6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,6 @@ static gboolean get_are_some_grabbed(GromitData *data)

void setup_input_devices (GromitData *data)
{
/*
first, check platform
*/
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);


/* ungrab all */
release_grab (data, NULL);

Expand Down

0 comments on commit c4c0ac6

Please sign in to comment.