mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
Log message on for_window command error
This commit is contained in:
parent
45267bb576
commit
63689bfb83
1 changed files with 4 additions and 2 deletions
|
|
@ -517,10 +517,12 @@ void view_execute_criteria(struct sway_view *view) {
|
||||||
sway_log(SWAY_DEBUG, "for_window '%s' matches view %p, cmd: '%s'",
|
sway_log(SWAY_DEBUG, "for_window '%s' matches view %p, cmd: '%s'",
|
||||||
criteria->raw, view, criteria->cmdlist);
|
criteria->raw, view, criteria->cmdlist);
|
||||||
list_add(view->executed_criteria, criteria);
|
list_add(view->executed_criteria, criteria);
|
||||||
list_t *res_list = execute_command(
|
list_t *res_list = execute_command(criteria->cmdlist, NULL, view->container);
|
||||||
criteria->cmdlist, NULL, view->container);
|
|
||||||
while (res_list->length) {
|
while (res_list->length) {
|
||||||
struct cmd_results *res = res_list->items[0];
|
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);
|
free_cmd_results(res);
|
||||||
list_del(res_list, 0);
|
list_del(res_list, 0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue