mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 18:01:29 +00:00
Merge pull request #1794 from thejan2009/swaybar-ipc-mode-fix
fix swaybar ipc handling
This commit is contained in:
commit
23df5b637e
|
@ -331,7 +331,7 @@ bool handle_ipc_readable(struct swaybar *bar) {
|
|||
switch (resp->type) {
|
||||
case IPC_EVENT_WORKSPACE:
|
||||
ipc_get_workspaces(bar);
|
||||
return true;
|
||||
break;
|
||||
case IPC_EVENT_MODE: {
|
||||
json_object *result = json_tokener_parse(resp->payload);
|
||||
if (!result) {
|
||||
|
@ -367,5 +367,5 @@ bool handle_ipc_readable(struct swaybar *bar) {
|
|||
return false;
|
||||
}
|
||||
free_ipc_response(resp);
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue