[gnome-settings-daemon] mouse: natural horizontal scroll fix
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] mouse: natural horizontal scroll fix
- Date: Fri, 9 Nov 2012 12:31:48 +0000 (UTC)
commit e4edbc4639c9c177e60c711a1af9d318e17925c3
Author: Ondrej Holy <oholy redhat com>
Date: Thu Oct 25 15:30:24 2012 +0200
mouse: natural horizontal scroll fix
https://bugzilla.gnome.org/show_bug.cgi?id=686714
plugins/mouse/gsd-mouse-manager.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index 2e653e1..116bcbd 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -974,7 +974,7 @@ set_natural_scroll (GsdMouseManager *manager,
int rc, act_format;
unsigned long nitems, bytes_after;
unsigned char *data;
- gint32 *ptr;
+ glong *ptr;
xdevice = open_gdk_device (device);
if (xdevice == NULL)
@@ -999,7 +999,7 @@ set_natural_scroll (GsdMouseManager *manager,
&bytes_after, &data);
if (rc == Success && act_type == XA_INTEGER && act_format == 32 && nitems >= 2) {
- ptr = (gint32 *) data;
+ ptr = (glong *) data;
if (natural_scroll) {
ptr[0] = -abs(ptr[0]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]