hlfw.ca

x9dev

Download patch

ref: cfa58ea992536ea169cfb7f59fe58dd8cf859728
parent: 0f1eaed053d17ea15de76f16f8070ee0ae7c67be
author: halfwit <michaelmisch1985@gmail.com>
date: Wed Oct 7 11:17:07 PDT 2020

Keep modmap in scope of draw.c

--- a/draw.c
+++ b/draw.c
@@ -480,3 +480,9 @@
 
     return TRUE;
 }
+
+Bool
+x9checkmod(unsigned int k, DeviceIntPtr pDev)
+{
+    return modmap[k] != 0;
+}
\ No newline at end of file
--- a/x9dev.c
+++ b/x9dev.c
@@ -105,7 +105,7 @@
 Bool
 LegalModifier(unsigned int k, DeviceIntPtr pDev)
 {
-    return modmap[k] != 0;
+    return x9checkmod(k, pDev);
 }
 
 void
--- a/x9dev.h
+++ b/x9dev.h
@@ -72,6 +72,7 @@
 DeviceIntPtr x9devMouse;
 DeviceIntPtr x9devKeybd;
 
+Bool x9checkmod(unsigned int, DeviceIntPtr);
 Bool x9devScreenInit(ScreenPtr, int, char **);
 int  x9devMouseProc(DeviceIntPtr, int);