From c495aabb8b107d752040af7ac96ac5f05d4dee2a Mon Sep 17 00:00:00 2001 From: Timur Celik Date: Tue, 6 Jul 2021 11:05:17 +0200 Subject: [PATCH] modules: Warn for all unknown workspace events --- modules/i3.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/i3.c b/modules/i3.c index dc19348..33d30c8 100644 --- a/modules/i3.c +++ b/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;