mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-17 06:59:52 -05:00
feat: add layout right_tile
This commit is contained in:
parent
7018c1edf7
commit
a8905b4384
4 changed files with 121 additions and 1 deletions
|
|
@ -24,6 +24,15 @@ bool is_horizontal_stack_layout(Monitor *m) {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool is_horizontal_right_stack_layout(Monitor *m) {
|
||||
|
||||
if (m->pertag->curtag &&
|
||||
(m->pertag->ltidxs[m->pertag->curtag]->id == RIGHT_TILE))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
int is_special_animaiton_rule(Client *c) {
|
||||
|
||||
if (is_scroller_layout(c->mon) && !c->isfloating) {
|
||||
|
|
@ -36,6 +45,12 @@ int is_special_animaiton_rule(Client *c) {
|
|||
} else if (!c->isfloating && new_is_master &&
|
||||
is_horizontal_stack_layout(c->mon)) {
|
||||
return LEFT;
|
||||
} else if (c->mon->visible_tiling_clients == 2 && !c->isfloating &&
|
||||
!new_is_master && is_horizontal_right_stack_layout(c->mon)) {
|
||||
return LEFT;
|
||||
} else if (!c->isfloating && new_is_master &&
|
||||
is_horizontal_right_stack_layout(c->mon)) {
|
||||
return RIGHT;
|
||||
} else {
|
||||
return UNDIR;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue