From 8bfce3eab87b2c0799ac6531bcc6921db4e5ffca Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Fri, 24 Jun 2022 10:17:30 +0100 Subject: [PATCH] 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. --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.20.1