]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t invert directions when resizing floating clients (top/left) (Thanks...
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 24 May 2010 17:20:32 +0000 (19:20 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 24 May 2010 17:20:32 +0000 (19:20 +0200)
src/commands.c

index 9d0d0f656d7b5a237e00381d57e73dbe792f3765..18181a61de61d20c7811e250a4861bdb2ae4960c 100644 (file)
@@ -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);