X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=include%2Fi3%2Fipc.h;fp=include%2Fi3%2Fipc.h;h=884a0cf635c75985ef1bebd1a689be9039d48556;hp=9e0280c9363322b48ef7f25534bfde2b9ccd9c4f;hb=1847938d4eeba98260cc79ca45a11a134274c2ea;hpb=c54f5008395b10c046f380cc3069ff779e5d2877 diff --git a/include/i3/ipc.h b/include/i3/ipc.h index 9e0280c9..884a0cf6 100644 --- a/include/i3/ipc.h +++ b/include/i3/ipc.h @@ -63,6 +63,9 @@ typedef struct i3_ipc_header { /** Send a tick event to all subscribers. */ #define I3_IPC_MESSAGE_TYPE_SEND_TICK 10 +/** Trigger an i3 sync protocol message via IPC. */ +#define I3_IPC_MESSAGE_TYPE_SYNC 11 + /* * Messages from i3 to clients * @@ -78,12 +81,13 @@ typedef struct i3_ipc_header { #define I3_IPC_REPLY_TYPE_BINDING_MODES 8 #define I3_IPC_REPLY_TYPE_CONFIG 9 #define I3_IPC_REPLY_TYPE_TICK 10 +#define I3_IPC_REPLY_TYPE_SYNC 11 /* * Events from i3 to clients. Events have the first bit set high. * */ -#define I3_IPC_EVENT_MASK (1 << 31) +#define I3_IPC_EVENT_MASK (1UL << 31) /* The workspace event will be triggered upon changes in the workspace list */ #define I3_IPC_EVENT_WORKSPACE (I3_IPC_EVENT_MASK | 0)