[cinnamon] add patch to disable xinput for cinnamon only (bz 873434)
leigh123linux
leigh123linux at fedoraproject.org
Wed Apr 2 08:58:45 UTC 2014
commit 354ce2d853002fbd0cf20308d9acf8a7139f76c5
Author: leigh123linux <leigh123linux at googlemail.com>
Date: Wed Apr 2 09:58:24 2014 +0100
add patch to disable xinput for cinnamon only (bz 873434)
cinnamon.spec | 6 +++++-
disable_xinput.patch | 18 ++++++++++++++++++
2 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/cinnamon.spec b/cinnamon.spec
index 8b67c4a..4c1fd16 100644
--- a/cinnamon.spec
+++ b/cinnamon.spec
@@ -2,7 +2,7 @@
Name: cinnamon
Version: 2.0.14
-Release: 15%{?dist}
+Release: 16%{?dist}
Summary: Window management and application launching for GNOME
License: GPLv2+ and LGPLv2+
URL: http://cinnamon.linuxmint.com
@@ -35,6 +35,7 @@ Patch9: remove_bluetootoh.patch
%endif
Patch10: set_wheel.patch
Patch11: cinnamon-desktop-editor.patch
+Patch12: disable_xinput.patch
%global clutter_version 1.12.2
%global cjs_version 1.9.1
@@ -242,6 +243,9 @@ fi
%{_mandir}/man1/*
%changelog
+* Wed Apr 02 2014 Leigh Scott <leigh123linux at googlemail.com> - 2.0.14-16
+- add patch to disable xinput for cinnamon only (bz 873434)
+
* Wed Mar 05 2014 Leigh Scott <leigh123linux at googlemail.com> - 2.0.14-15
- Fix desktop file editor
diff --git a/disable_xinput.patch b/disable_xinput.patch
new file mode 100644
index 0000000..d5cb9fa
--- /dev/null
+++ b/disable_xinput.patch
@@ -0,0 +1,18 @@
+--- a/src/main.c
++++ b/src/main.c
+@@ -224,6 +224,7 @@ main (int argc, char **argv)
+ GError *error = NULL;
+ int ecode;
+
++ g_setenv ("CLUTTER_DISABLE_XINPUT", "1", TRUE);
+ g_type_init ();
+
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+@@ -248,6 +249,7 @@ main (int argc, char **argv)
+ meta_init ();
+ g_unsetenv ("NO_GAIL");
+ g_unsetenv ("NO_AT_BRIDGE");
++ g_unsetenv ("CLUTTER_DISABLE_XINPUT");
+
+ /* FIXME: Add gjs API to set this stuff and don't depend on the
+ * environment. These propagate to child processes.
More information about the scm-commits
mailing list