Permalink
Browse files

Enforce X11 backend in Clutter

Beginning with Clutter 1.21 the default backend changes to GDK. It is not X11 anymore in our case. But this application relies heavily on old default backend. So a hacky workaround is to enforce X11 backend again. This commit addresses issue #73
  • Loading branch information...
1 parent 05b6dd9 commit 965b6f01210c3c97fe5c02f3e77b7d45e481e75d @gmc-holle committed Mar 9, 2015
Showing with 7 additions and 0 deletions.
  1. +7 −0 xfdashboard/main.c
View
@@ -192,6 +192,13 @@ int main(int argc, char **argv)
g_type_init();
#endif
+#if CLUTTER_CHECK_VERSION(1, 16, 0)
+ /* Enforce X11 backend in Clutter. This function must be called before any
+ * other Clutter API function.
+ */
+ clutter_set_windowing_backend("x11");
+#endif
+
/* Check for running instance (keep only one instance) */
app=xfdashboard_application_get_default();
if(!app)

0 comments on commit 965b6f0

Please sign in to comment.