From: Michael Stapelberg Date: Tue, 5 May 2009 14:57:21 +0000 (+0200) Subject: Add debug message for jumping X-Git-Tag: 3.b~123 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=56d637a665e8ff23b1d080a6912086963d7d722b;p=i3%2Fi3 Add debug message for jumping --- 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); }