[gnome-settings-daemon/gnome-3-6] wacom: use long for data in props
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-6] wacom: use long for data in props
- Date: Wed, 2 Jan 2013 16:08:15 +0000 (UTC)
commit ea931f70918e06ebb1f2b25ebdc4ac590ee70f89
Author: Olivier Fourdan <ofourdan redhat com>
Date: Fri Dec 21 11:51:57 2012 +0100
wacom: use long for data in props
as using integers would cause some garbage to be passed to
the Wacom driver on 64 bits systems where the size of int
is less than the size of long, confusing the Wacom driver.
https://bugzilla.gnome.org/show_bug.cgi?id=690588
plugins/wacom/gsd-wacom-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 6b03876..9a4cb4c 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -667,7 +667,7 @@ reset_touch_buttons (XDevice *xdev,
for (i = 0; buttons[i].button != NULL; i++)
{
char *propname;
- int action[2]; /* press + release */
+ glong action[2]; /* press + release */
Atom prop;
int mapped_button = buttons[i].num;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]