[PATCH] Fix wheel on Haiku
François Revol <[email protected]> Sat, 08 Feb 2014 00:31:30 +0100
| Newsgroups | gmane.editors.qemacs.devel |
|---|---|
| Message-ID | <[email protected]> |
This fixes wheel support on Haiku by setting uninitialized x and y members of the event struct to 0. François. _______________________________________________ Qemacs-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/qemacs-devel
qemacs-haiku-fix-wheel-20140208.patch
(text/x-patch, 549 B)
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;