fix:dont make fullscreen window and maxmize window as scroller tile window
This commit is contained in:
8
main.c
8
main.c
@@ -4590,7 +4590,7 @@ void grid(Monitor *m, unsigned int gappo, unsigned int gappi) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// // 网格布局窗口大小和位置计算
|
// 滚动布局
|
||||||
void scroller(Monitor *m, unsigned int gappo, unsigned int gappi) {
|
void scroller(Monitor *m, unsigned int gappo, unsigned int gappi) {
|
||||||
unsigned int i, n;
|
unsigned int i, n;
|
||||||
|
|
||||||
@@ -4604,7 +4604,7 @@ void scroller(Monitor *m, unsigned int gappo, unsigned int gappi) {
|
|||||||
unsigned int max_client_width = m->w.width - 2 * scroller_structs - gappih;
|
unsigned int max_client_width = m->w.width - 2 * scroller_structs - gappih;
|
||||||
|
|
||||||
wl_list_for_each(c, &clients,
|
wl_list_for_each(c, &clients,
|
||||||
link) if (VISIBLEON(c, c->mon) && !c->isfloating && !c->iskilling &&
|
link) if (VISIBLEON(c, c->mon) && !c->isfloating && !c->isfullscreen && !c->ismaxmizescreen && !c->iskilling &&
|
||||||
!c->animation.tagouting && c->mon == selmon) {
|
!c->animation.tagouting && c->mon == selmon) {
|
||||||
tempClients[n] = c;
|
tempClients[n] = c;
|
||||||
n++;
|
n++;
|
||||||
@@ -4623,9 +4623,9 @@ void scroller(Monitor *m, unsigned int gappo, unsigned int gappi) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(selmon->sel && selmon->sel->istiled ) {
|
if(selmon->sel && selmon->sel->istiled && !c->ismaxmizescreen && !c->isfullscreen) {
|
||||||
root_client = selmon->sel;
|
root_client = selmon->sel;
|
||||||
} else if(selmon->prevsel && selmon->prevsel->istiled ) {
|
} else if(selmon->prevsel && selmon->prevsel->istiled && !c->ismaxmizescreen && !c->isfullscreen) {
|
||||||
root_client = selmon->prevsel;
|
root_client = selmon->prevsel;
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user