hlfw.ca

x9dev

Download patch

ref: fd20c735e9abf5a9f69b5235f59f7e7249f7a617
parent: 0fa263a81318560ebf4c374a15a164add3486f5a
author: halfwit <michaelmisch1985@gmail.com>
date: Sat Oct 10 05:33:06 PDT 2020

Need the button global as well

--- a/mouse.c
+++ b/mouse.c
@@ -27,7 +27,7 @@
 #include "x9dev.h"
 
 extern DeviceIntPtr x9devMouse;
-int x, y, oldx, oldy;
+int x, y, oldx, oldy, oldbut;
 
 #define e    ev.u.u
 #define ek    ev.u.keyButtonPointer
@@ -117,7 +117,7 @@
     Atom axes_labels[2] = {0};
 
     /* Init too */
-    x = y = oldx = oldy = 0;
+    x = y = oldx = oldy = oldbut = 0;
 
     switch (what) {
     case DEVICE_INIT: