mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-06 07:15:53 -04:00
opt: auto unstack if the direction find is null
This commit is contained in:
parent
598731f573
commit
0ae91bedb3
1 changed files with 12 additions and 1 deletions
|
|
@ -1598,8 +1598,19 @@ int32_t scroller_stack(const Arg *arg) {
|
||||||
|
|
||||||
Client *left_c = find_client_by_direction(c, arg, false, true);
|
Client *left_c = find_client_by_direction(c, arg, false, true);
|
||||||
|
|
||||||
if (!left_c)
|
if (!left_c) {
|
||||||
|
if (arg->i == LEFT) {
|
||||||
|
exit_scroller_stack(c);
|
||||||
|
wl_list_remove(&c->link);
|
||||||
|
wl_list_insert(&clients, &c->link);
|
||||||
|
} else {
|
||||||
|
exit_scroller_stack(c);
|
||||||
|
wl_list_remove(&c->link);
|
||||||
|
wl_list_insert(clients.prev, &c->link);
|
||||||
|
}
|
||||||
|
arrange(selmon, false, false);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (c->isfullscreen) {
|
if (c->isfullscreen) {
|
||||||
setfullscreen(c, 0);
|
setfullscreen(c, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue