[xfdashboard] Force X11 backend for clutter
nonamedotc
nonamedotc at fedoraproject.org
Tue Mar 10 00:57:23 UTC 2015
commit 2b7f2b936cd62335cb7252ae166f3a931cc6d4a8
Author: Mukundan Ragavan <nonamedotc at fedoraproject.org>
Date: Mon Mar 9 19:57:21 2015 -0500
Force X11 backend for clutter
force-x11-clutter.patch | 22 ++++++++++++++++++++++
xfdashboard.spec | 7 ++++++-
2 files changed, 28 insertions(+), 1 deletion(-)
---
diff --git a/force-x11-clutter.patch b/force-x11-clutter.patch
new file mode 100644
index 0000000..87d7077
--- /dev/null
+++ b/force-x11-clutter.patch
@@ -0,0 +1,22 @@
+--- xfdashboard/main.c.orig 2015-03-09 19:42:04.119603095 -0500
++++ xfdashboard/main.c 2015-03-09 19:42:13.290616241 -0500
+@@ -187,11 +187,18 @@
+ GError *error=NULL;
+ gint status;
+
+-#if !defined(GLIB_CHECK_VERSION) || !GLIB_CHECK_VERSION(2, 36, 0)
++#if !GLIB_CHECK_VERSION(2, 36, 0)
+ /* Initialize GObject type system */
+ 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)
diff --git a/xfdashboard.spec b/xfdashboard.spec
index 581abfc..0a5d8bb 100644
--- a/xfdashboard.spec
+++ b/xfdashboard.spec
@@ -1,11 +1,12 @@
Name: xfdashboard
Version: 0.3.9
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: GNOME shell like dashboard for Xfce
License: GPLv2+
URL: http://xfdashboard.froevel.de
Source0: https://github.com/gmc-holle/xfdashboard/archive/%{version}.tar.gz
+Patch0: force-x11-clutter.patch
BuildRequires: libwnck-devel
BuildRequires: clutter-devel
@@ -33,6 +34,7 @@ Additional themes for use with Xfdashboard
%prep
%setup -q
+%patch0 -b .fix-clutter
%build
export CFLAGS="%{optflags}"
@@ -77,6 +79,9 @@ fi
%{_datadir}/themes/%{name}-*
%changelog
+* Mon Mar 09 2015 Mukundan Ragavan <nonamedotc at fedoraproject.org> - 0.3.9-4
+- Force X11 backend for clutter
+
* Sun Mar 01 2015 Mukundan Ragavan <nonamedotc at gmail.com> - 0.3.9-3
- Rebuild from Xfce 4.12
More information about the scm-commits
mailing list