add flags field to deviceEnterNotify struct
authorPeter Hutterer <peter@cs.unisa.edu.au>
Thu, 8 Feb 2007 00:24:34 +0000 (10:54 +1030)
committerPeter Hutterer <whot@hyena.localdomain>
Thu, 8 Feb 2007 00:24:34 +0000 (10:54 +1030)
add same_screen, focus to XDeviceCrossingEvent struct

XInput.h
XIproto.h

index 90a3ca3..13d1dff 100644 (file)
--- a/XInput.h
+++ b/XInput.h
@@ -483,6 +483,8 @@ typedef struct {
      * NotifyAncestor, NotifyVirtual, NotifyInferior, 
      * NotifyNonlinear,NotifyNonlinearVirtual
      */
+    Bool same_screen;   /* same screen flag */
+    Bool focus;         /* boolean focus */
     unsigned int state;        /* key or button mask */
 } XDeviceCrossingEvent;
 
index 1e941c1..ad61c0e 100644 (file)
--- a/XIproto.h
+++ b/XIproto.h
@@ -1717,7 +1717,7 @@ typedef struct
 typedef struct
     {
     BYTE       type;
-    BYTE        pad00;
+    CARD8       deviceid;
     CARD16     sequenceNumber B16;
     Time        time B32;
     Window      root B32;
@@ -1729,8 +1729,7 @@ typedef struct
     INT16       eventY B16;
     KeyButMask  state B16;
     BYTE        mode;
-    /* flags are missing */
-    CARD8       deviceid;
+    BYTE        flags;
     }  deviceEnterNotify;
 
 typedef deviceEnterNotify deviceLeaveNotify;