From 56d637a665e8ff23b1d080a6912086963d7d722b Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 5 May 2009 16:57:21 +0200 Subject: [PATCH] Add debug message for jumping --- src/commands.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands.c b/src/commands.c index 95c60c8e..111dce55 100644 --- a/src/commands.c +++ b/src/commands.c @@ -685,13 +685,15 @@ static void jump_to_container(xcb_connection_t *conn, const char *arguments) { if (result < 3) return; + LOG("Boundary-checking col %d, row %d... (max cols %d, max rows %d)\n", col, row, c_ws->cols, c_ws->rows); + /* Move to row/col */ if (row >= c_ws->rows) row = c_ws->rows - 1; if (col >= c_ws->cols) col = c_ws->cols - 1; - LOG("Jumping to row %d, col %d\n", col, row); + LOG("Jumping to col %d, row %d\n", col, row); if (c_ws->table[col][row]->currently_focused != NULL) set_focus(conn, c_ws->table[col][row]->currently_focused); }