Bugfix: Don’t invert directions when resizing floating clients (top/left) (Thanks João)

This commit is contained in:
Michael Stapelberg 2010-05-24 19:20:32 +02:00
parent 0c60ae19cb
commit d0baa8c652
1 changed files with 4 additions and 4 deletions

View File

@ -938,15 +938,15 @@ static void parse_resize_command(xcb_connection_t *conn, Client *last_focused, c
DLOG("Resizing a floating client\n"); DLOG("Resizing a floating client\n");
if (STARTS_WITH(command, "left")) { if (STARTS_WITH(command, "left")) {
command += strlen("left"); command += strlen("left");
last_focused->rect.width += atoi(command); last_focused->rect.width -= atoi(command);
last_focused->rect.x -= atoi(command); last_focused->rect.x += atoi(command);
} else if (STARTS_WITH(command, "right")) { } else if (STARTS_WITH(command, "right")) {
command += strlen("right"); command += strlen("right");
last_focused->rect.width += atoi(command); last_focused->rect.width += atoi(command);
} else if (STARTS_WITH(command, "top")) { } else if (STARTS_WITH(command, "top")) {
command += strlen("top"); command += strlen("top");
last_focused->rect.height += atoi(command); last_focused->rect.height -= atoi(command);
last_focused->rect.y -= atoi(command); last_focused->rect.y += atoi(command);
} else if (STARTS_WITH(command, "bottom")) { } else if (STARTS_WITH(command, "bottom")) {
command += strlen("bottom"); command += strlen("bottom");
last_focused->rect.height += atoi(command); last_focused->rect.height += atoi(command);