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);