From: Michael Stapelberg Date: Mon, 24 May 2010 17:20:32 +0000 (+0200) Subject: Bugfix: Don’t invert directions when resizing floating clients (top/left) (Thanks... X-Git-Tag: 3.e-bf1~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e68aa1f414afae58b65ba68d970a2a3a92a15df3;p=i3%2Fi3 Bugfix: Don’t invert directions when resizing floating clients (top/left) (Thanks João) --- diff --git a/src/commands.c b/src/commands.c index b2649bee..4ec501b7 100644 --- a/src/commands.c +++ b/src/commands.c @@ -876,15 +876,15 @@ static void parse_resize_command(xcb_connection_t *conn, Client *last_focused, c DLOG("Resizing a floating client\n"); if (STARTS_WITH(command, "left")) { command += strlen("left"); - last_focused->rect.width += atoi(command); - last_focused->rect.x -= atoi(command); + last_focused->rect.width -= atoi(command); + last_focused->rect.x += atoi(command); } else if (STARTS_WITH(command, "right")) { command += strlen("right"); last_focused->rect.width += atoi(command); } else if (STARTS_WITH(command, "top")) { command += strlen("top"); - last_focused->rect.height += atoi(command); - last_focused->rect.y -= atoi(command); + last_focused->rect.height -= atoi(command); + last_focused->rect.y += atoi(command); } else if (STARTS_WITH(command, "bottom")) { command += strlen("bottom"); last_focused->rect.height += atoi(command);