[gtk+] wayland: Use the correct union member for axis events
- From: Rob Bradford <rbradford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Use the correct union member for axis events
- Date: Mon, 16 Jul 2012 14:39:09 +0000 (UTC)
commit 21f4b1cb35d95e4ed783ef2ba963875291b4eaff
Author: Rob Bradford <rob linux intel com>
Date: Mon Jul 16 15:36:40 2012 +0100
wayland: Use the correct union member for axis events
Otherwise we end up overriding other members of the struct (in this case the
device pointer) and generate an error.
gdk/wayland/gdkdevice-wayland.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index f1698b3..4054dc2 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -1139,7 +1139,7 @@ pointer_handle_axis (void *data,
event->scroll.direction = GDK_SCROLL_SMOOTH;
event->scroll.delta_x = delta_x;
event->scroll.delta_y = delta_y;
- event->button.state = device->modifiers;
+ event->scroll.state = device->modifiers;
gdk_event_set_screen (event, display->screen);
GDK_NOTE (EVENTS,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]