]> git.sur5r.net Git - i3/i3/commitdiff
send_tick: set "first" field (#3271)
authorOrestis <orestisf1993@gmail.com>
Sat, 28 Apr 2018 12:47:28 +0000 (15:47 +0300)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Sat, 28 Apr 2018 12:47:28 +0000 (14:47 +0200)
According to the docs, the tick event should return:
    {
     "first": false,
     "payload": "arbitrary string"
    }

src/ipc.c

index eebb576ef4cefa8899d04a04f92b179475f95026..2ac09d7d545a9e2833dbf267b1138a95ee74e036 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -1127,6 +1127,9 @@ IPC_HANDLER(send_tick) {
 
     y(map_open);
 
+    ystr("first");
+    y(bool, false);
+
     ystr("payload");
     yajl_gen_string(gen, (unsigned char *)message, message_size);