From: Michael Stapelberg Date: Fri, 16 Apr 2010 19:02:34 +0000 (+0200) Subject: better debug messages X-Git-Tag: tree-pr1~252 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=479679807473d2c41b870f31b2f28b5a884157ab;p=i3%2Fi3 better debug messages --- diff --git a/src/x.c b/src/x.c index 347b8f76..7ba56c65 100644 --- a/src/x.c +++ b/src/x.c @@ -255,7 +255,7 @@ void x_push_changes(Con *con) { LOG("\n\n PUSHING CHANGES\n\n"); x_push_node(con); - LOG("-- PUSHING FOCUS STACK --\n"); + LOG("-- PUSHING WINDOW STACK --\n"); /* X11 correctly represents the stack if we push it from bottom to top */ CIRCLEQ_FOREACH_REVERSE(state, &state_head, state) { LOG("stack: 0x%08x\n", state->id); @@ -278,7 +278,7 @@ void x_push_changes(Con *con) { to_focus = focused->window->id; if (focused_id != to_focus) { - LOG("Updating focus\n"); + LOG("Updating focus (focused: %p / %s)\n", focused, focused->name); xcb_set_input_focus(conn, XCB_INPUT_FOCUS_POINTER_ROOT, to_focus, XCB_CURRENT_TIME); }