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

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