hlfw.ca

x9dev

Download patch

ref: 153799f1f8551685cb3851f9052a8e23890f709f
parent: fd20c735e9abf5a9f69b5235f59f7e7249f7a617
author: halfwit <michaelmisch1985@gmail.com>
date: Sat Oct 10 05:34:19 PDT 2020

Overzealous globals

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