[gnome-settings-daemon] mouse: wrap pointer acceleration changes into a gdk_error_trap
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] mouse: wrap pointer acceleration changes into a gdk_error_trap
- Date: Tue, 4 Mar 2014 16:18:57 +0000 (UTC)
commit 8b78228a7e0abfc2c1561a275214da5d77cc7a93
Author: Peter Hutterer <peter hutterer who-t net>
Date: Thu Feb 20 17:20:32 2014 +1000
mouse: wrap pointer acceleration changes into a gdk_error_trap
https://bugzilla.gnome.org/show_bug.cgi?id=724789
plugins/mouse/gsd-mouse-manager.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index f7c6432..e7d3c74 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -430,6 +430,8 @@ set_motion (GsdMouseManager *manager,
/* And threshold */
motion_threshold = g_settings_get_int (settings, KEY_MOTION_THRESHOLD);
+ gdk_error_trap_push ();
+
/* Get the list of feedbacks for the device */
states = XGetFeedbackControl (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), xdevice,
&num_feedbacks);
if (states == NULL)
@@ -458,6 +460,9 @@ set_motion (GsdMouseManager *manager,
state = (XFeedbackState *) ((char *) state + state->length);
}
+ if (gdk_error_trap_pop ())
+ g_warning ("Error setting acceleration on \"%s\"", gdk_device_get_name (device));
+
XFreeFeedbackList (states);
out:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]