mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-05 13:29:54 -05:00
feat: add dispatch exchange_stack_client
This commit is contained in:
parent
0b43c70352
commit
a220a3060f
3 changed files with 18 additions and 0 deletions
|
|
@ -73,6 +73,20 @@ void exchange_client(const Arg *arg) {
|
|||
exchange_two_client(c, direction_select(arg));
|
||||
}
|
||||
|
||||
void exchange_stack_client(const Arg *arg) {
|
||||
Client *c = selmon->sel;
|
||||
Client *tc;
|
||||
if (!c || c->isfloating || c->isfullscreen || c->ismaxmizescreen)
|
||||
return;
|
||||
if (arg->i > 0) {
|
||||
tc = get_next_stack_client(c, false);
|
||||
} else {
|
||||
tc = get_next_stack_client(c, true);
|
||||
}
|
||||
if (tc)
|
||||
exchange_two_client(c, tc);
|
||||
}
|
||||
|
||||
void focusdir(const Arg *arg) {
|
||||
Client *c;
|
||||
c = direction_select(arg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue