This fixes wheel support on Haiku by setting uninitialized x and y
members of the event struct to 0.

François.
Index: haiku.cpp
===================================================================
RCS file: /sources/qemacs/qemacs/haiku.cpp,v
retrieving revision 1.10
diff -u -r1.10 haiku.cpp
--- haiku.cpp	4 Feb 2014 03:26:45 -0000	1.10
+++ haiku.cpp	7 Feb 2014 23:29:46 -0000
@@ -459,6 +459,8 @@
             float delta;
 
             ev->button_event.type = QE_BUTTON_PRESS_EVENT;
+            ev->button_event.x = 0;
+            ev->button_event.y = 0;
 
             if (event->FindFloat("be:wheel_delta_y", &delta) < B_OK)
                 delta = 0.0;
_______________________________________________
Qemacs-devel mailing list
Qemacs-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/qemacs-devel

Reply via email to