forked from external/yambar
module/i3: subscribe *before* requesting initial workspace list
This ensures we don't have a race, where we might miss workspace changes between the initial list and subscribing.
This commit is contained in:
parent
be4765fadd
commit
83db675e01
1 changed files with 1 additions and 1 deletions
|
@ -575,8 +575,8 @@ run(struct module *mod)
|
|||
}
|
||||
|
||||
send_pkg(sock, I3_IPC_MESSAGE_TYPE_GET_VERSION, NULL);
|
||||
send_pkg(sock, I3_IPC_MESSAGE_TYPE_GET_WORKSPACES, NULL);
|
||||
send_pkg(sock, I3_IPC_MESSAGE_TYPE_SUBSCRIBE, "[\"workspace\", \"window\"]");
|
||||
send_pkg(sock, I3_IPC_MESSAGE_TYPE_GET_WORKSPACES, NULL);
|
||||
|
||||
/* Initial reply typically requires a couple of KB. But we often
|
||||
* need more later. For example, switching workspaces can result
|
||||
|
|
Loading…
Add table
Reference in a new issue