Part fix #985: Fullscreen alwasys loads on the wrong screen in a dual-monitor setup
authorColin Clark <colin.clark@cclark.uk>
Fri, 24 Jun 2022 09:17:30 +0000 (10:17 +0100)
committerColin Clark <colin.clark@cclark.uk>
Fri, 24 Jun 2022 09:17:30 +0000 (10:17 +0100)
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.

src/main.c

index 7ae3f99..863e39a 100644 (file)
@@ -1175,6 +1175,10 @@ gint main(gint argc, gchar *argv[])
        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);