Bugfix: Fix 'resize' with direction != 'up' for floating windows
Fixes #447
This commit is contained in:
parent
3ef7e3cee4
commit
cc5f3ce95a
|
@ -785,12 +785,12 @@ resize:
|
||||||
focused->parent->rect.y -= px;
|
focused->parent->rect.y -= px;
|
||||||
focused->parent->rect.height += px;
|
focused->parent->rect.height += px;
|
||||||
} else if (direction == TOK_DOWN) {
|
} else if (direction == TOK_DOWN) {
|
||||||
focused->rect.height += px;
|
focused->parent->rect.height += px;
|
||||||
} else if (direction == TOK_LEFT) {
|
} else if (direction == TOK_LEFT) {
|
||||||
focused->rect.x -= px;
|
focused->parent->rect.x -= px;
|
||||||
focused->rect.width += px;
|
focused->parent->rect.width += px;
|
||||||
} else {
|
} else {
|
||||||
focused->rect.width += px;
|
focused->parent->rect.width += px;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LOG("tiling resize\n");
|
LOG("tiling resize\n");
|
||||||
|
|
Loading…
Reference in New Issue