Implement moving clients to the left if they are leftmost

This commit is contained in:
Michael Stapelberg
2009-03-11 01:55:10 +01:00
parent 9c0d5b6e5e
commit 49b56166dc
3 changed files with 29 additions and 5 deletions

View File

@ -181,11 +181,13 @@ static void move_current_window(xcb_connection_t *conn, direction_t direction) {
switch (direction) {
case D_LEFT:
/* TODO: If were at the left-most position, move the rest of the table right */
if (current_col == 0)
return;
/* If were at the left-most position, move the rest of the table right */
if (current_col == 0) {
expand_table_cols_at_head(c_ws);
new = CUR_TABLE[current_col][current_row];
} else
new = CUR_TABLE[--current_col][current_row];
new = CUR_TABLE[--current_col][current_row];
break;
case D_RIGHT:
if (current_col == (c_ws->cols-1))