From: Michael Stapelberg Date: Sat, 28 Feb 2009 01:46:36 +0000 (+0100) Subject: Update TODO, fix parsing in commandmode for moving windows to workspaces vs. switching X-Git-Tag: 3.a~134 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b651b132bc7e2e0999e64edb739107616321684d;p=i3%2Fi3 Update TODO, fix parsing in commandmode for moving windows to workspaces vs. switching --- diff --git a/TODO b/TODO index 70023cfe..2cefe03f 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,8 @@ TODO list, in order of importance: + * Implement moving windows to other workspaces (see src/command.c) + * When at the edge of a screen and wanting to change into the direction of the edge, + i3 should switch to the next screen (if any) in this direction. * document stuff! * more documentation! * debian package diff --git a/src/commands.c b/src/commands.c index e583b0ab..30a0ac08 100644 --- a/src/commands.c +++ b/src/commands.c @@ -386,10 +386,6 @@ void parse_command(xcb_connection_t *conn, const char *command) { printf("Invalid command (\"%s\")\n", command); return; } - if (*rest == 'm' || *rest == 's') { - action = (*rest == 'm' ? ACTION_MOVE : ACTION_SNAP); - rest++; - } if (*rest == '\0') { /* No rest? This was a tag number, not a times specification */ @@ -397,6 +393,11 @@ void parse_command(xcb_connection_t *conn, const char *command) { return; } + if (*rest == 'm' || *rest == 's') { + action = (*rest == 'm' ? ACTION_MOVE : ACTION_SNAP); + rest++; + } + /* Now perform action to */ while (*rest != '\0') { if (*rest == 'h')