SOURCES: gnome-settings-daemon-gsd-mouse-xinput.patch (NEW) - fix crash wit...

baggins baggins at pld-linux.org
Sun Jan 4 01:34:08 CET 2009


Author: baggins                      Date: Sun Jan  4 00:34:08 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix crash with X servers that don't provide XInput (bug #562977)

---- Files affected:
SOURCES:
   gnome-settings-daemon-gsd-mouse-xinput.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gnome-settings-daemon-gsd-mouse-xinput.patch
diff -u /dev/null SOURCES/gnome-settings-daemon-gsd-mouse-xinput.patch:1.1
--- /dev/null	Sun Jan  4 01:34:08 2009
+++ SOURCES/gnome-settings-daemon-gsd-mouse-xinput.patch	Sun Jan  4 01:34:02 2009
@@ -0,0 +1,20 @@
+Index: plugins/mouse/gsd-mouse-manager.c
+===================================================================
+--- plugins/mouse/gsd-mouse-manager.c	(revision 621)
++++ plugins/mouse/gsd-mouse-manager.c	(working copy)
+@@ -329,9 +329,14 @@ devicepresence_filter (GdkXEvent *xevent
+ static void
+ set_devicepresence_handler (GsdMouseManager *manager)
+ {
+-        Display *display = gdk_x11_get_default_xdisplay ();
++        Display *display;
+         XEventClass class_presence;
+         int xi_presence;
++
++        if (!supports_xinput_devices ())
++                return;
++
++        display = gdk_x11_get_default_xdisplay ();
+ 
+         gdk_error_trap_push ();
+         DevicePresence (display, xi_presence, class_presence);
================================================================


More information about the pld-cvs-commit mailing list