From: Michael Stapelberg Date: Mon, 30 Mar 2009 07:27:58 +0000 (+0200) Subject: Change syntax of jump to col,row instead of row,col to make it consistent with the... X-Git-Tag: 3.b~126 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12fa69329add61988c868fd642e469fd53273976;p=i3%2Fi3 Change syntax of jump to col,row instead of row,col to make it consistent with the internal data structures, document it in commandmode --- diff --git a/CMDMODE b/CMDMODE index 6b8315e2..37dcb3a3 100644 --- a/CMDMODE +++ b/CMDMODE @@ -17,6 +17,10 @@ with := { [ ] }+ oder +jump := [ ] + +oder + special := [ exec | kill | exit | restart ] an jeder Stelle kann mit escape abgebrochen werden diff --git a/src/commands.c b/src/commands.c index 9ebe7616..0462438a 100644 --- a/src/commands.c +++ b/src/commands.c @@ -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); }