]> git.sur5r.net Git - i3/i3/commitdiff
ipc: change message type of events (first bit set high)
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 13 Mar 2010 14:04:23 +0000 (15:04 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 13 Mar 2010 14:04:23 +0000 (15:04 +0100)
include/i3/ipc.h

index aad349763bb5b3546b790956592fc635c706027e..5adec37894f6d1057c1ca301f59fe9900a0f35c9 100644 (file)
 #define I3_IPC_REPLY_TYPE_SUBSCRIBE             2
 
 /*
- * Events from i3 to clients
+ * Events from i3 to clients. Events have the first bit set high.
  *
  */
+#define I3_IPC_EVENT_MASK                       (1 << 31)
 
-#define I3_IPC_EVENT_WORKSPACE                  0
+#define I3_IPC_EVENT_WORKSPACE                  (I3_IPC_EVENT_MASK | 0)
 
 #endif