From d0baa8c6527246057b4365ec1d7e483991eb8e47 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 24 May 2010 19:20:32 +0200 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20invert=20directions=20?= =?utf8?q?when=20resizing=20floating=20clients=20(top/left)=20(Thanks=20Jo?= =?utf8?q?=C3=A3o)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/commands.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands.c b/src/commands.c index 9d0d0f65..18181a61 100644 --- a/src/commands.c +++ b/src/commands.c @@ -938,15 +938,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); -- 2.39.5