mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-06 07:15:53 -04:00
排除不必要的客户端计算布局
This commit is contained in:
parent
1c7e95f01e
commit
2660297e4f
1 changed files with 6 additions and 2 deletions
8
maomao.c
8
maomao.c
|
|
@ -4840,7 +4840,9 @@ void fibonacci(Monitor *mon, int s) {
|
|||
Client *c;
|
||||
|
||||
wl_list_for_each(c, &clients, link)
|
||||
if (VISIBLEON(c, mon) && !c->isfloating)
|
||||
if (VISIBLEON(c, mon) && !c->isfloating && !c->iskilling
|
||||
&& !c->isfullscreen && !c->ismaxmizescreen
|
||||
&& !c->animation.tagouting)
|
||||
n++;
|
||||
if(n == 0)
|
||||
return;
|
||||
|
|
@ -4851,7 +4853,9 @@ void fibonacci(Monitor *mon, int s) {
|
|||
nh = mon->w.height - gappov;
|
||||
|
||||
wl_list_for_each(c, &clients, link)
|
||||
if (VISIBLEON(c, mon) && !c->isfloating){
|
||||
if (VISIBLEON(c, mon) && !c->isfloating && !c->iskilling
|
||||
&& !c->isfullscreen && !c->ismaxmizescreen
|
||||
&& !c->animation.tagouting) {
|
||||
if((i % 2 && nh / 2 > 2 * c->bw)
|
||||
|| (!(i % 2) && nw / 2 > 2 * c->bw)) {
|
||||
if(i < n - 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue