From 0cfebcb5b61d0812bd52a69c92271375a37216d3 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 27 Nov 2010 18:05:45 +0100 Subject: [PATCH] remove some debug messages --- src/con.c | 3 --- src/render.c | 1 - src/tree.c | 4 ---- src/x.c | 5 ----- 4 files changed, 13 deletions(-) diff --git a/src/con.c b/src/con.c index 4824510f..8d24c0df 100644 --- a/src/con.c +++ b/src/con.c @@ -232,7 +232,6 @@ struct bfs_entry { Con *con_get_fullscreen_con(Con *con) { Con *current, *child; - LOG("looking for fullscreen node\n"); /* TODO: is breadth-first-search really appropriate? (check as soon as * fullscreen levels and fullscreen for containers is implemented) */ TAILQ_HEAD(bfs_head, bfs_entry) bfs_head = TAILQ_HEAD_INITIALIZER(bfs_head); @@ -243,7 +242,6 @@ Con *con_get_fullscreen_con(Con *con) { while (!TAILQ_EMPTY(&bfs_head)) { entry = TAILQ_FIRST(&bfs_head); current = entry->con; - LOG("checking %p\n", current); if (current != con && current->fullscreen_mode != CF_NONE) { /* empty the queue */ while (!TAILQ_EMPTY(&bfs_head)) { @@ -254,7 +252,6 @@ Con *con_get_fullscreen_con(Con *con) { return current; } - LOG("deleting from queue\n"); TAILQ_REMOVE(&bfs_head, entry, entries); free(entry); diff --git a/src/render.c b/src/render.c index b1b1bd89..7551e0fa 100644 --- a/src/render.c +++ b/src/render.c @@ -40,7 +40,6 @@ void render_con(Con *con, bool render_fullscreen) { int i = 0; - printf("mapped = true\n"); con->mapped = true; /* if this container contains a window, set the coordinates */ diff --git a/src/tree.c b/src/tree.c index 290f1fc2..e37eb5f9 100644 --- a/src/tree.c +++ b/src/tree.c @@ -298,21 +298,17 @@ void level_down() { static void mark_unmapped(Con *con) { Con *current; - DLOG("marking container %p unmapped\n", con); con->mapped = false; TAILQ_FOREACH(current, &(con->nodes_head), nodes) mark_unmapped(current); if (con->type == CT_WORKSPACE) { TAILQ_FOREACH(current, &(con->floating_head), floating_windows) { - DLOG("Marking unmapped for floating %p\n", current); current->mapped = false; Con *child = TAILQ_FIRST(&(current->nodes_head)); - DLOG(" unmapping floating child %p\n", child); child->mapped = false; } } - DLOG("mark_unmapped done\n"); } /* diff --git a/src/x.c b/src/x.c index 84659100..2deb37c1 100644 --- a/src/x.c +++ b/src/x.c @@ -391,16 +391,12 @@ static void x_push_node(Con *con) { * this frame. */ uint32_t max_y = 0, max_height = 0; TAILQ_FOREACH(current, &(con->nodes_head), nodes) { - DLOG("Child's decoration is %d x %d, from (%d, %d)\n", - current->deco_rect.width, current->deco_rect.height, - current->deco_rect.x, current->deco_rect.y); Rect *dr = &(current->deco_rect); if (dr->y >= max_y && dr->height >= max_height) { max_y = dr->y; max_height = dr->height; } } - DLOG("bottom of decorations is %d\n", max_y + max_height); rect.height = max_y + max_height; if (rect.height == 0) { DLOG("Unmapping container because it does not contain anything atm.\n"); @@ -618,7 +614,6 @@ void x_raise_con(Con *con) { LOG("raising in new stack: %p / %s\n", con, con->name); state = state_for_frame(con->frame); - LOG("found state entry, moving to top\n"); CIRCLEQ_REMOVE(&state_head, state, state); CIRCLEQ_INSERT_HEAD(&state_head, state, state); } -- 2.39.5