hlfw.ca

x9dev

Download patch

ref: 9ca93993f8bfaa24c83a5ea78cb973eeef67d11f
parent: 3f65e3d01f0359cab8fde1841a1de965e1fcd037
author: halfwit <michaelmisch1985@gmail.com>
date: Sat Oct 10 05:05:14 PDT 2020

Not single source, so not static

--- a/keyboard.c
+++ b/keyboard.c
@@ -79,7 +79,7 @@
     return rune;
 }
 
-static int  
+int  
 x9devKeybdHandle(void)
 {
     unsigned char   k, m;
--- a/meson.build
+++ b/meson.build
@@ -3,8 +3,6 @@
     'keyboard.c',
     'mouse.c',
     'screen.c',
-    '../../mi/miinitext.c',
-    '../../mi/mi.h',
     'x9dev.h',
     'keymap.h',
 ]
@@ -21,6 +19,7 @@
     link_with: [
         c9,
         libdraw,
+        libxserver_mi
         libxserver_main,
         libxserver_fb,
         libxserver,
--- a/mouse.c
+++ b/mouse.c
@@ -71,7 +71,7 @@
 }
 
 
-static int  
+int  
 x9devMouseHandle(void)
 {
     int x, y, b, but, t;
--- a/x9dev.h
+++ b/x9dev.h
@@ -106,9 +106,12 @@
 x9devInfo x9di;
 Screen *screen;
 
+/* Callbacks, etc */
 Bool x9checkmod(unsigned int, DeviceIntPtr);
 Bool x9devScreenInit(ScreenPtr, int, char **);
 int x9devKeybdProc(DeviceIntPtr, int);
 int x9devMouseProc(DeviceIntPtr, int);
+int x9devMouseHandle(void);
+int x9devKeybdHandle(void);
 
 #endif