Add debug message for jumping

This commit is contained in:
Michael Stapelberg 2009-05-05 16:57:21 +02:00
parent f72214725c
commit 56d637a665
1 changed files with 3 additions and 1 deletions

View File

@ -685,13 +685,15 @@ static void jump_to_container(xcb_connection_t *conn, const char *arguments) {
if (result < 3) if (result < 3)
return; 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 */ /* Move to row/col */
if (row >= c_ws->rows) if (row >= c_ws->rows)
row = c_ws->rows - 1; row = c_ws->rows - 1;
if (col >= c_ws->cols) if (col >= c_ws->cols)
col = c_ws->cols - 1; 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) if (c_ws->table[col][row]->currently_focused != NULL)
set_focus(conn, c_ws->table[col][row]->currently_focused); set_focus(conn, c_ws->table[col][row]->currently_focused);
} }