]> git.sur5r.net Git - i3/i3/commitdiff
Change syntax of jump to col,row instead of row,col to make it consistent with the...
authorMichael Stapelberg <michael+x200@stapelberg.de>
Mon, 30 Mar 2009 07:27:58 +0000 (09:27 +0200)
committerMichael Stapelberg <michael+x200@stapelberg.de>
Tue, 5 May 2009 14:47:06 +0000 (16:47 +0200)
CMDMODE
src/commands.c

diff --git a/CMDMODE b/CMDMODE
index 6b8315e2fa027e30f5e62ee2464ff54af026f51f..37dcb3a3b347183ab9d98a03aaccf9c9e24de378 100644 (file)
--- a/CMDMODE
+++ b/CMDMODE
@@ -17,6 +17,10 @@ with := <w> { [ <times> ] <where> }+ <space> <cmd>
 
 oder
 
+jump := <workspace> [ <column> <row> ]
+
+oder
+
 special := [ exec <path> | kill | exit | restart ]
 
 an jeder Stelle kann mit escape abgebrochen werden
index 9ebe7616ac9d776550cd78421422184feb4aeb11..0462438a9f3a9d429ebe4a6ad7108cf45345a64d 100644 (file)
@@ -595,7 +595,7 @@ static void jump_to_container(xcb_connection_t *conn, const char* arg_str) {
         int ws, row, col;
         int result;
 
-        result = sscanf(arg_str, "%d %d %d", &ws, &row, &col);
+        result = sscanf(arg_str, "%d %d %d", &ws, &col, &row);
         LOG("Jump called with %d parameters (\"%s\")\n", result, arg_str);
 
         /* No match? Either no arguments were specified, or no numbers */
@@ -616,7 +616,7 @@ static void jump_to_container(xcb_connection_t *conn, const char* arg_str) {
         if (col >= c_ws->cols)
                 col = c_ws->cols - 1;
 
-        LOG("Jumping to row %d, col %d\n", row, col);
+        LOG("Jumping to row %d, col %d\n", col, row);
         if (c_ws->table[col][row]->currently_focused != NULL)
                 set_focus(conn, c_ws->table[col][row]->currently_focused);
 }