[gnome-settings-daemon] wacom: use long for data in props
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: use long for data in props
- Date: Wed, 2 Jan 2013 16:08:44 +0000 (UTC)
commit 40c933c55fc02554bc2c728ad787658c05559b4a
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 0e6e9c7..011e4a8 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -625,7 +625,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]