Update TODO, fix parsing in commandmode for moving windows to workspaces vs. switching

This commit is contained in:
Michael Stapelberg 2009-02-28 02:46:36 +01:00
parent d8d4d0182d
commit b651b132bc
2 changed files with 8 additions and 4 deletions

3
TODO
View File

@ -1,5 +1,8 @@
TODO list, in order of importance: 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! * document stuff!
* more documentation! * more documentation!
* debian package * debian package

View File

@ -386,10 +386,6 @@ void parse_command(xcb_connection_t *conn, const char *command) {
printf("Invalid command (\"%s\")\n", command); printf("Invalid command (\"%s\")\n", command);
return; return;
} }
if (*rest == 'm' || *rest == 's') {
action = (*rest == 'm' ? ACTION_MOVE : ACTION_SNAP);
rest++;
}
if (*rest == '\0') { if (*rest == '\0') {
/* No rest? This was a tag number, not a times specification */ /* 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; return;
} }
if (*rest == 'm' || *rest == 's') {
action = (*rest == 'm' ? ACTION_MOVE : ACTION_SNAP);
rest++;
}
/* Now perform action to <where> */ /* Now perform action to <where> */
while (*rest != '\0') { while (*rest != '\0') {
if (*rest == 'h') if (*rest == 'h')