From 14a312c152c658d2593fc9ffe4e1b20cf8e4b59a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 2 Jun 2010 17:04:26 +0200 Subject: [PATCH] more debug output --- src/handlers.c | 1 + src/manage.c | 2 +- src/tree.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/handlers.c b/src/handlers.c index 91872e4b..7613110c 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -421,6 +421,7 @@ int handle_configure_request(void *prophs, xcb_connection_t *conn, xcb_configure * */ int handle_configure_event(void *prophs, xcb_connection_t *conn, xcb_configure_notify_event_t *event) { + DLOG("configure_event, sequence %d\n", event->sequence); /* We ignore this sequence twice because events for child and frame should be ignored */ add_ignore_event(event->sequence); add_ignore_event(event->sequence); diff --git a/src/manage.c b/src/manage.c index 4305abd1..5f5bb44c 100644 --- a/src/manage.c +++ b/src/manage.c @@ -111,7 +111,7 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki /* Check if the window is already managed */ if (con_by_window_id(window) != NULL) { - LOG("already managed\n"); + LOG("already managed (by con %p)\n", con_by_window_id(window)); goto out; } diff --git a/src/tree.c b/src/tree.c index c4315e31..048fd549 100644 --- a/src/tree.c +++ b/src/tree.c @@ -147,7 +147,7 @@ void tree_close(Con *con, bool kill_window) { next = con->parent; } - LOG("closing %p\n", con); + DLOG("closing %p, kill_window = %d\n", con, kill_window); Con *child; /* We cannot use TAILQ_FOREACH because the children get deleted * in their parent’s nodes_head */ -- 2.39.5