mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-26 04:15:42 +02:00
modules: Warn for all unknown workspace events
This commit is contained in:
parent
5345d12cff
commit
c495aabb8b
1 changed files with 4 additions and 6 deletions
10
modules/i3.c
10
modules/i3.c
|
@ -290,12 +290,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) ||
|
||||
|
@ -402,6 +396,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