forked from external/yambar
modules: Warn for all unknown workspace events
This commit is contained in:
parent
bbd2394601
commit
8f89545b32
1 changed files with 4 additions and 6 deletions
10
modules/i3.c
10
modules/i3.c
|
@ -355,12 +355,6 @@ handle_workspace_event(int type, const struct json_object *json, void *_mod)
|
|||
bool is_focused = strcmp(change_str, "focus") == 0;
|
||||
bool is_rename = strcmp(change_str, "rename") == 0;
|
||||
bool is_urgent = strcmp(change_str, "urgent") == 0;
|
||||
bool is_reload = strcmp(change_str, "reload") == 0;
|
||||
|
||||
if (is_reload) {
|
||||
LOG_WARN("unimplemented: 'reload' event");
|
||||
return true;
|
||||
}
|
||||
|
||||
struct json_object *current, *_current_id;
|
||||
if (!json_object_object_get_ex(json, "current", ¤t) ||
|
||||
|
@ -464,6 +458,10 @@ handle_workspace_event(int type, const struct json_object *json, void *_mod)
|
|||
w->urgent = json_object_get_boolean(urgent);
|
||||
}
|
||||
|
||||
else {
|
||||
LOG_WARN("unimplemented workspace event '%s'", change_str);
|
||||
}
|
||||
|
||||
m->dirty = true;
|
||||
mtx_unlock(&mod->lock);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue