diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 92408ce6..58852717 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -31,7 +31,7 @@ static list_t *get_bfs_queue() { | |||
31 | if (!bfs_queue) { | 31 | if (!bfs_queue) { |
32 | bfs_queue = create_list(); | 32 | bfs_queue = create_list(); |
33 | if (!bfs_queue) { | 33 | if (!bfs_queue) { |
34 | wlr_log(L_ERROR, "could not allocate list for bfs queue"); | 34 | wlr_log(WLR_ERROR, "could not allocate list for bfs queue"); |
35 | return NULL; | 35 | return NULL; |
36 | } | 36 | } |
37 | } | 37 | } |
@@ -213,7 +213,7 @@ static struct sway_container *container_workspace_destroy( | |||
213 | return NULL; | 213 | return NULL; |
214 | } | 214 | } |
215 | 215 | ||
216 | wlr_log(L_DEBUG, "destroying workspace '%s'", workspace->name); | 216 | wlr_log(WLR_DEBUG, "destroying workspace '%s'", workspace->name); |
217 | 217 | ||
218 | struct sway_container *parent = workspace->parent; | 218 | struct sway_container *parent = workspace->parent; |
219 | if (!workspace_is_empty(workspace) && output) { | 219 | if (!workspace_is_empty(workspace) && output) { |
@@ -226,7 +226,7 @@ static struct sway_container *container_workspace_destroy( | |||
226 | } | 226 | } |
227 | } | 227 | } |
228 | 228 | ||
229 | wlr_log(L_DEBUG, "moving children to different workspace '%s' -> '%s'", | 229 | wlr_log(WLR_DEBUG, "moving children to different workspace '%s' -> '%s'", |
230 | workspace->name, new_workspace->name); | 230 | workspace->name, new_workspace->name); |
231 | for (int i = 0; i < workspace->children->length; i++) { | 231 | for (int i = 0; i < workspace->children->length; i++) { |
232 | container_move_to(workspace->children->items[i], new_workspace); | 232 | container_move_to(workspace->children->items[i], new_workspace); |
@@ -292,7 +292,7 @@ static struct sway_container *container_output_destroy( | |||
292 | output->sway_output->swayc = NULL; | 292 | output->sway_output->swayc = NULL; |
293 | output->sway_output = NULL; | 293 | output->sway_output = NULL; |
294 | 294 | ||
295 | wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name); | 295 | wlr_log(WLR_DEBUG, "OUTPUT: Destroying output '%s'", output->name); |
296 | 296 | ||
297 | return &root_container; | 297 | return &root_container; |
298 | } | 298 | } |
@@ -319,7 +319,7 @@ static struct sway_container *container_destroy_noreaping( | |||
319 | // Workspaces will refuse to be destroyed if they're the last workspace | 319 | // Workspaces will refuse to be destroyed if they're the last workspace |
320 | // on their output. | 320 | // on their output. |
321 | if (!container_workspace_destroy(con)) { | 321 | if (!container_workspace_destroy(con)) { |
322 | wlr_log(L_ERROR, "workspace doesn't want to destroy"); | 322 | wlr_log(WLR_ERROR, "workspace doesn't want to destroy"); |
323 | return NULL; | 323 | return NULL; |
324 | } | 324 | } |
325 | } | 325 | } |
@@ -346,7 +346,7 @@ bool container_reap_empty(struct sway_container *con) { | |||
346 | break; | 346 | break; |
347 | case C_WORKSPACE: | 347 | case C_WORKSPACE: |
348 | if (!workspace_is_visible(con) && workspace_is_empty(con)) { | 348 | if (!workspace_is_visible(con) && workspace_is_empty(con)) { |
349 | wlr_log(L_DEBUG, "Destroying workspace via reaper"); | 349 | wlr_log(WLR_DEBUG, "Destroying workspace via reaper"); |
350 | container_destroy_noreaping(con); | 350 | container_destroy_noreaping(con); |
351 | return true; | 351 | return true; |
352 | } | 352 | } |
@@ -439,7 +439,7 @@ struct sway_container *container_view_create(struct sway_container *sibling, | |||
439 | } | 439 | } |
440 | const char *title = view_get_title(sway_view); | 440 | const char *title = view_get_title(sway_view); |
441 | struct sway_container *swayc = container_create(C_VIEW); | 441 | struct sway_container *swayc = container_create(C_VIEW); |
442 | wlr_log(L_DEBUG, "Adding new view %p:%s to container %p %d %s", | 442 | wlr_log(WLR_DEBUG, "Adding new view %p:%s to container %p %d %s", |
443 | swayc, title, sibling, sibling ? sibling->type : 0, sibling->name); | 443 | swayc, title, sibling, sibling ? sibling->type : 0, sibling->name); |
444 | // Setup values | 444 | // Setup values |
445 | swayc->sway_view = sway_view; | 445 | swayc->sway_view = sway_view; |
@@ -702,7 +702,7 @@ void container_for_each_descendant_bfs(struct sway_container *con, | |||
702 | } | 702 | } |
703 | 703 | ||
704 | if (queue == NULL) { | 704 | if (queue == NULL) { |
705 | wlr_log(L_ERROR, "could not allocate list"); | 705 | wlr_log(WLR_ERROR, "could not allocate list"); |
706 | return; | 706 | return; |
707 | } | 707 | } |
708 | 708 | ||