[gtk+/smooth-scrolling: 9/16] devicemanager, x11: Initialize event->scroll.delta_x/y to 0 on core events



commit 3498c28893e45532e510c005178d3fad8764af74
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Jan 24 00:46:43 2012 +0100

    devicemanager,x11: Initialize event->scroll.delta_x/y to 0 on core events

 gdk/x11/gdkdevicemanager-core-x11.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gdk/x11/gdkdevicemanager-core-x11.c b/gdk/x11/gdkdevicemanager-core-x11.c
index 9969f4f..50b47ef 100644
--- a/gdk/x11/gdkdevicemanager-core-x11.c
+++ b/gdk/x11/gdkdevicemanager-core-x11.c
@@ -471,6 +471,9 @@ gdk_x11_device_manager_core_translate_event (GdkEventTranslator *translator,
           event->scroll.state = (GdkModifierType) xevent->xbutton.state;
           event->scroll.device = device_manager->core_pointer;
 
+          event->scroll.delta_x = 0;
+          event->scroll.delta_y = 0;
+
           if (!set_screen_from_root (display, event, xevent->xbutton.root))
             {
               return_val = FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]