style fixes for the last commit
parent
a97c876d31
commit
a99fff03c3
|
@ -867,32 +867,30 @@ static void next_previous_workspace(xcb_connection_t *conn, int direction) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void parse_move_command(xcb_connection_t *conn, Client *last_focused, const char *command) {
|
static void parse_move_command(xcb_connection_t *conn, Client *last_focused, const char *command) {
|
||||||
int first, second;
|
if (!client_is_floating(last_focused)) {
|
||||||
resize_orientation_t orientation = O_VERTICAL;
|
LOG("You can only move floating clients with the \"move\" command\n");
|
||||||
Container *con = last_focused->container;
|
|
||||||
Workspace *ws = last_focused->workspace;
|
|
||||||
if (client_is_floating(last_focused)) {
|
|
||||||
DLOG("Moving a floating client\n");
|
|
||||||
if (STARTS_WITH(command, "left")) {
|
|
||||||
command += strlen("left");
|
|
||||||
last_focused->rect.x -= atoi(command);
|
|
||||||
} else if (STARTS_WITH(command, "right")) {
|
|
||||||
command += strlen("right");
|
|
||||||
last_focused->rect.x += atoi(command);
|
|
||||||
} else if (STARTS_WITH(command, "top")) {
|
|
||||||
command += strlen("top");
|
|
||||||
last_focused->rect.y -= atoi(command);
|
|
||||||
} else if (STARTS_WITH(command, "bottom")) {
|
|
||||||
command += strlen("bottom");
|
|
||||||
last_focused->rect.y += atoi(command);
|
|
||||||
} else {
|
|
||||||
ELOG("Syntax: move <left|right|top|bottom> <pixels>\n");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
/* resize_client flushes */
|
|
||||||
resize_client(conn, last_focused);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DLOG("Moving a floating client\n");
|
||||||
|
if (STARTS_WITH(command, "left")) {
|
||||||
|
command += strlen("left");
|
||||||
|
last_focused->rect.x -= atoi(command);
|
||||||
|
} else if (STARTS_WITH(command, "right")) {
|
||||||
|
command += strlen("right");
|
||||||
|
last_focused->rect.x += atoi(command);
|
||||||
|
} else if (STARTS_WITH(command, "top")) {
|
||||||
|
command += strlen("top");
|
||||||
|
last_focused->rect.y -= atoi(command);
|
||||||
|
} else if (STARTS_WITH(command, "bottom")) {
|
||||||
|
command += strlen("bottom");
|
||||||
|
last_focused->rect.y += atoi(command);
|
||||||
|
} else {
|
||||||
|
ELOG("Syntax: move <left|right|top|bottom> <pixels>\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
/* resize_client flushes */
|
||||||
|
resize_client(conn, last_focused);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void parse_resize_command(xcb_connection_t *conn, Client *last_focused, const char *command) {
|
static void parse_resize_command(xcb_connection_t *conn, Client *last_focused, const char *command) {
|
||||||
|
|
Loading…
Reference in New Issue