forked from external/yambar
modules: Implement workspace move event
Implementing the move event required to pass the IPC socket to `i3_ipc_callback_t`, because we won't get notified about any visibility changes of other workspaces. That's why we query all workspaces again after a focused workspace was moved.
This commit is contained in:
parent
8f89545b32
commit
24a3b90a01
4 changed files with 34 additions and 10 deletions
|
@ -94,7 +94,7 @@ content(struct module *mod)
|
|||
}
|
||||
|
||||
static bool
|
||||
handle_input_reply(int type, const struct json_object *json, void *_mod)
|
||||
handle_input_reply(int sock, int type, const struct json_object *json, void *_mod)
|
||||
{
|
||||
struct module *mod = _mod;
|
||||
struct private *m = mod->private;
|
||||
|
@ -162,7 +162,7 @@ handle_input_reply(int type, const struct json_object *json, void *_mod)
|
|||
}
|
||||
|
||||
static bool
|
||||
handle_input_event(int type, const struct json_object *json, void *_mod)
|
||||
handle_input_event(int sock, int type, const struct json_object *json, void *_mod)
|
||||
{
|
||||
struct module *mod = _mod;
|
||||
struct private *m = mod->private;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue