[gtk+/composite-templates] wayland: Use the correct union member for axis events



commit 1be2d0c21b5f45e7f4d83a4bc8b8928a6aec324d
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]