sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 63689bfb830b68eba8062aedef9928c55713c9bc
parent 45267bb576559ac583daa4c73c64baef1d4f5ef3
Author: Simon Ser <contact@emersion.fr>
Date:   Sun, 27 Apr 2025 22:11:41 +0200

Log message on for_window command error

Diffstat:
Msway/tree/view.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 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); }