Blame SOURCES/fontforge-20200314-Call-gdk_set_allowed_backends-before-gdk_init.patch

1fb08f
From ee14a6389d19e2f45219134058e07f10585fa6d3 Mon Sep 17 00:00:00 2001
1fb08f
From: Jeremy Tan <jtanx@outlook.com>
1fb08f
Date: Thu, 2 Apr 2020 18:03:47 +0800
1fb08f
Subject: [PATCH] Call gdk_set_allowed_backends before gdk_init
1fb08f
1fb08f
Fixes #4247
1fb08f
---
1fb08f
 fontforgeexe/startui.c | 2 +-
1fb08f
 1 file changed, 1 insertion(+), 1 deletion(-)
1fb08f
1fb08f
diff --git a/fontforgeexe/startui.c b/fontforgeexe/startui.c
1fb08f
index 06f5200a4..114bb7fb6 100644
1fb08f
--- a/fontforgeexe/startui.c
1fb08f
+++ b/fontforgeexe/startui.c
1fb08f
@@ -1182,8 +1182,8 @@ int fontforge_main( int argc, char **argv ) {
1fb08f
 #endif
1fb08f
     }
1fb08f
 #ifdef FONTFORGE_CAN_USE_GDK
1fb08f
-    gdk_init(&argc, &argv);
1fb08f
     gdk_set_allowed_backends("win32,quartz,x11");
1fb08f
+    gdk_init(&argc, &argv);
1fb08f
 #endif
1fb08f
     ensureDotFontForgeIsSetup();
1fb08f
 #if defined(__MINGW32__) && !defined(_NO_LIBCAIRO)
1fb08f
-- 
1fb08f
2.26.0
1fb08f