https://github.com/BestImageViewer/geeqie/issues/985
Removes the need for the user to set GDK_BACKEND.
User can still override the x11 setting by setting GDK_BACKEND to
something else.
gint fd_stderr[2];
GIOChannel *stderr_channel;
gint fd_stderr[2];
GIOChannel *stderr_channel;
+#if GTK_CHECK_VERSION(3,10,0)
+ gdk_set_allowed_backends("x11,*");
+#endif
+
#ifdef HAVE_GTHREAD
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init(NULL);
#ifdef HAVE_GTHREAD
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init(NULL);