[gtk+/smooth-scrolling-for-3.4: 9/16] devicemanager, x11: Initialize event->scroll.delta_x/y to 0 on core events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/smooth-scrolling-for-3.4: 9/16] devicemanager, x11: Initialize event->scroll.delta_x/y to 0 on core events
- Date: Thu, 23 Feb 2012 12:44:53 +0000 (UTC)
commit e56b1338626e6a915162037772ec37e1e201fabf
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 f0b9214..c9c1a4f 100644
--- a/gdk/x11/gdkdevicemanager-core-x11.c
+++ b/gdk/x11/gdkdevicemanager-core-x11.c
@@ -467,6 +467,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]