Force X11 for gtk-3
patch from fedora :
https://src.fedoraproject.org/rpms/spacefm/blob/rawhide/f/spacefm-1.0.5-force-x11-backend.patch
--- spacefm-1.0.5/src/main.c.x11	2016-01-20 22:22:23.000000000 +0900
+++ spacefm-1.0.5/src/main.c	2017-04-04 18:27:28.487452290 +0900
@@ -1327,6 +1327,9 @@
     bind_textdomain_codeset ( GETTEXT_PACKAGE, "UTF-8" );
     textdomain ( GETTEXT_PACKAGE );
 #endif
+#if GTK_CHECK_VERSION(3,10,0)
+    gdk_set_allowed_backends ("x11");
+#endif
 
     // load spacefm.conf
     load_conf();
