mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-04 01:40:27 -05:00
opt: support unstack direction
This commit is contained in:
parent
0ae91bedb3
commit
37b39168c1
2 changed files with 5 additions and 1 deletions
|
|
@ -1085,6 +1085,7 @@ FuncType parse_func_name(char *func_name, Arg *arg, char *arg_value,
|
|||
(*arg).i = parse_direction(arg_value);
|
||||
} else if (strcmp(func_name, "scroller_unstack") == 0) {
|
||||
func = scroller_unstack;
|
||||
(*arg).i = parse_direction(arg_value);
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1652,7 +1652,10 @@ int32_t scroller_unstack(const Arg *arg) {
|
|||
|
||||
// Insert c after the stack it was in
|
||||
wl_list_remove(&c->link);
|
||||
wl_list_insert(&scroller_stack_head->link, &c->link);
|
||||
if (arg->i == RIGHT)
|
||||
wl_list_insert(&scroller_stack_head->link, &c->link);
|
||||
else
|
||||
wl_list_insert(scroller_stack_head->link.prev, &c->link);
|
||||
|
||||
focusclient(c, 1);
|
||||
arrange(selmon, false, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue