diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2025-04-27 22:11:41 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2025-04-27 22:11:41 +0200 |
| commit | a9affc7b77f7d7da881e2d3dbf957adc47f34ee6 (patch) | |
| tree | ea2a33872266fdb45edaff59281f9064430f3c25 | |
| parent | 96069afd77405e702ca99f4320753babc34cfecc (diff) | |
Log message on for_window command error
| -rw-r--r-- | sway/tree/view.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 16080a2f..9a5cf06e 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -517,10 +517,12 @@ void view_execute_criteria(struct sway_view *view) { sway_log(SWAY_DEBUG, "for_window '%s' matches view %p, cmd: '%s'", criteria->raw, view, criteria->cmdlist); list_add(view->executed_criteria, criteria); - list_t *res_list = execute_command( - criteria->cmdlist, NULL, view->container); + list_t *res_list = execute_command(criteria->cmdlist, NULL, view->container); while (res_list->length) { struct cmd_results *res = res_list->items[0]; + if (res->status != CMD_SUCCESS) { + sway_log(SWAY_ERROR, "for_window '%s' failed: %s", criteria->raw, res->error); + } free_cmd_results(res); list_del(res_list, 0); } |
