aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 3ef79fa8..c96b6a97 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -462,17 +462,17 @@ void view_execute_criteria(struct sway_view *view) {
462 list_t *criterias = criteria_for_view(view, CT_COMMAND); 462 list_t *criterias = criteria_for_view(view, CT_COMMAND);
463 for (int i = 0; i < criterias->length; i++) { 463 for (int i = 0; i < criterias->length; i++) {
464 struct criteria *criteria = criterias->items[i]; 464 struct criteria *criteria = criterias->items[i];
465 wlr_log(L_DEBUG, "Checking criteria %s", criteria->raw); 465 wlr_log(WLR_DEBUG, "Checking criteria %s", criteria->raw);
466 if (view_has_executed_criteria(view, criteria)) { 466 if (view_has_executed_criteria(view, criteria)) {
467 wlr_log(L_DEBUG, "Criteria already executed"); 467 wlr_log(WLR_DEBUG, "Criteria already executed");
468 continue; 468 continue;
469 } 469 }
470 wlr_log(L_DEBUG, "for_window '%s' matches view %p, cmd: '%s'", 470 wlr_log(WLR_DEBUG, "for_window '%s' matches view %p, cmd: '%s'",
471 criteria->raw, view, criteria->cmdlist); 471 criteria->raw, view, criteria->cmdlist);
472 list_add(view->executed_criteria, criteria); 472 list_add(view->executed_criteria, criteria);
473 struct cmd_results *res = execute_command(criteria->cmdlist, NULL); 473 struct cmd_results *res = execute_command(criteria->cmdlist, NULL);
474 if (res->status != CMD_SUCCESS) { 474 if (res->status != CMD_SUCCESS) {
475 wlr_log(L_ERROR, "Command '%s' failed: %s", res->input, res->error); 475 wlr_log(WLR_ERROR, "Command '%s' failed: %s", res->input, res->error);
476 } 476 }
477 free_cmd_results(res); 477 free_cmd_results(res);
478 // view must be focused for commands to affect it, 478 // view must be focused for commands to affect it,
@@ -601,7 +601,7 @@ static void view_subsurface_create(struct sway_view *view,
601 struct wlr_subsurface *subsurface) { 601 struct wlr_subsurface *subsurface) {
602 struct sway_view_child *child = calloc(1, sizeof(struct sway_view_child)); 602 struct sway_view_child *child = calloc(1, sizeof(struct sway_view_child));
603 if (child == NULL) { 603 if (child == NULL) {
604 wlr_log(L_ERROR, "Allocation failed"); 604 wlr_log(WLR_ERROR, "Allocation failed");
605 return; 605 return;
606 } 606 }
607 view_child_init(child, NULL, view, subsurface->surface); 607 view_child_init(child, NULL, view, subsurface->surface);
@@ -721,7 +721,7 @@ struct sway_view *view_from_wlr_surface(struct wlr_surface *wlr_surface) {
721 return NULL; 721 return NULL;
722 } 722 }
723 723
724 wlr_log(L_DEBUG, "Surface of unknown type (role %s): %p", 724 wlr_log(WLR_DEBUG, "Surface of unknown type (role %s): %p",
725 wlr_surface->role, wlr_surface); 725 wlr_surface->role, wlr_surface);
726 return NULL; 726 return NULL;
727} 727}
@@ -789,7 +789,7 @@ static char *escape_title(char *buffer) {
789 char *escaped_title = calloc(length + 1, sizeof(char)); 789 char *escaped_title = calloc(length + 1, sizeof(char));
790 int result = escape_markup_text(buffer, escaped_title, length); 790 int result = escape_markup_text(buffer, escaped_title, length);
791 if (result != length) { 791 if (result != length) {
792 wlr_log(L_ERROR, "Could not escape title: %s", buffer); 792 wlr_log(WLR_ERROR, "Could not escape title: %s", buffer);
793 free(escaped_title); 793 free(escaped_title);
794 return buffer; 794 return buffer;
795 } 795 }