]> git.sur5r.net Git - i3/i3/commitdiff
Add debug message for jumping
authorMichael Stapelberg <michael+x200@stapelberg.de>
Tue, 5 May 2009 14:57:21 +0000 (16:57 +0200)
committerMichael Stapelberg <michael+x200@stapelberg.de>
Tue, 5 May 2009 14:57:21 +0000 (16:57 +0200)
src/commands.c

index 95c60c8e3b3c97fb5445fca87b38c194e514168d..111dce5561488eb426426d6c4c63caf16d9fb9df 100644 (file)
@@ -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);
 }