mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-01 07:16:11 -04:00
Allowed resizing vertical stack from any selected window.
This commit is contained in:
parent
660633bd1d
commit
7b11593c15
1 changed files with 7 additions and 1 deletions
|
|
@ -426,6 +426,12 @@ int32_t resizewin(const Arg *arg) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (ISTILED(c)) {
|
if (ISTILED(c)) {
|
||||||
|
Client *target_client = c;
|
||||||
|
if (is_scroller_layout(c->mon) && (c->prev_in_stack || c->next_in_stack)) {
|
||||||
|
while (target_client->prev_in_stack) {
|
||||||
|
target_client = target_client->prev_in_stack;
|
||||||
|
}
|
||||||
|
}
|
||||||
switch (arg->ui) {
|
switch (arg->ui) {
|
||||||
case NUM_TYPE_MINUS:
|
case NUM_TYPE_MINUS:
|
||||||
offsetx = -arg->i;
|
offsetx = -arg->i;
|
||||||
|
|
@ -449,7 +455,7 @@ int32_t resizewin(const Arg *arg) {
|
||||||
offsety = arg->i2;
|
offsety = arg->i2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
resize_tile_client(c, false, offsetx, offsety, 0);
|
resize_tile_client(target_client, false, offsetx, offsety, 0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue