From: Colin Clark Date: Fri, 24 Jun 2022 09:17:30 +0000 (+0100) Subject: Part fix #985: Fullscreen alwasys loads on the wrong screen in a dual-monitor setup X-Git-Tag: gtk2final~6 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=8bfce3eab87b2c0799ac6531bcc6921db4e5ffca Part fix #985: Fullscreen alwasys loads on the wrong screen in a dual-monitor setup 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. --- diff --git a/src/main.c b/src/main.c index 7ae3f995..863e39a0 100644 --- a/src/main.c +++ b/src/main.c @@ -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);