hlfw.ca

x9dev

Download patch

ref: a58a799813c93bf8d210de698bea2cd8f3717877
parent: 9ab873a1af5818a699bb2e30fd51f87c2b97226a
author: halfwit <michaelmisch1985@gmail.com>
date: Wed Oct 7 11:12:05 PDT 2020

Try to get includes sorted

--- a/draw.c
+++ b/draw.c
@@ -20,34 +20,10 @@
  * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
-
 #ifdef HAVE_DIX_CONFIG_H
 #include <dix-config.h>
 #endif
 
-#define NEED_EVENTS
-#include <X11/Xproto.h>
-#include <X11/Xos.h>
-#include <X11/Xpoll.h>
-#define XK_TECHNICA
-#define XK_PUBLISHING
-#include <X11/keysym.h>
-#include <X11/keysymdef.h>
-#include "servermd.h"
-#define PSZ 8
-#include "fb.h"
-#include "colormapst.h"
-#include "gcstruct.h"
-#include "mipointer.h"
-#include "micmap.h"
-#include "dix.h"
-#include "miline.h"
-#include "shadow.h"
-#include "xkbsrv.h"
-#include "xserver-properties.h"
-#include "exevents.h"
-#include "extinit.h"
-#include "keymap.h"
 #include "x9dev.h"
 
 x9devInfo x9di;
--- a/x9dev.c
+++ b/x9dev.c
@@ -24,7 +24,6 @@
 #ifdef HAVE_DIX_CONFIG_H
 #include <dix-config.h>
 #endif
-#include "glx_extinit.h"
 #include "x9dev.h"
 
 void
--- a/x9dev.h
+++ b/x9dev.h
@@ -23,9 +23,32 @@
 
 #ifndef _X9DEV_H_
 #define _X9DEV_H_
-#include <X11/X.h>
 
+#define NEED_EVENTS
+#include <X11/Xproto.h>
+#include <X11/Xos.h>
+#include <X11/Xpoll.h>
+#define XK_TECHNICA
+#define XK_PUBLISHING
+#include <X11/keysym.h>
+#include <X11/keysymdef.h>
+#include "servermd.h"
+#define PSZ 8
+#include "fb.h"
+#include "colormapst.h"
+#include "gcstruct.h"
+#include "mipointer.h"
+#include "micmap.h"
+#include "dix.h"
+#include "miline.h"
+#include "shadow.h"
+#include "xkbsrv.h"
+#include "xserver-properties.h"
+#include "exevents.h"
+#include "extinit.h"
+#include "keymap.h"
 #include "mi.h"
+#include "glx_extinit.h"
 #include "input.h"
 #include "scrnintstr.h"
 typedef struct x9devInfo x9devInfo;