mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-02 09:01:43 -05:00
opt: ignore focus window no apply tile in ovgrid layout
This commit is contained in:
parent
474589c7c1
commit
2850531b28
1 changed files with 4 additions and 4 deletions
|
|
@ -137,7 +137,7 @@ void grid(Monitor *m) {
|
||||||
|
|
||||||
// 第一次遍历,计算 n 的值
|
// 第一次遍历,计算 n 的值
|
||||||
wl_list_for_each(c, &clients, link) {
|
wl_list_for_each(c, &clients, link) {
|
||||||
if (VISIBLEON(c, c->mon) && !c->iskilling && !c->animation.tagouting &&
|
if (VISIBLEON(c, c->mon) && !client_should_ignore_focus(c) && !c->iskilling && !c->animation.tagouting &&
|
||||||
c->mon == selmon) {
|
c->mon == selmon) {
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
|
|
@ -152,7 +152,7 @@ void grid(Monitor *m) {
|
||||||
c->bw = m->visible_clients == 1 && no_border_when_single && smartgaps
|
c->bw = m->visible_clients == 1 && no_border_when_single && smartgaps
|
||||||
? 0
|
? 0
|
||||||
: borderpx;
|
: borderpx;
|
||||||
if (VISIBLEON(c, c->mon) && !c->iskilling && !c->animation.tagouting &&
|
if (VISIBLEON(c, c->mon) && !client_should_ignore_focus(c) && !c->iskilling && !c->animation.tagouting &&
|
||||||
c->mon == selmon) {
|
c->mon == selmon) {
|
||||||
cw = (m->w.width - 2 * overviewgappo) * 0.7;
|
cw = (m->w.width - 2 * overviewgappo) * 0.7;
|
||||||
ch = (m->w.height - 2 * overviewgappo) * 0.8;
|
ch = (m->w.height - 2 * overviewgappo) * 0.8;
|
||||||
|
|
@ -174,7 +174,7 @@ void grid(Monitor *m) {
|
||||||
c->bw = m->visible_clients == 1 && no_border_when_single && smartgaps
|
c->bw = m->visible_clients == 1 && no_border_when_single && smartgaps
|
||||||
? 0
|
? 0
|
||||||
: borderpx;
|
: borderpx;
|
||||||
if (VISIBLEON(c, c->mon) && !c->iskilling && !c->animation.tagouting &&
|
if (VISIBLEON(c, c->mon) && !client_should_ignore_focus(c) && !c->iskilling && !c->animation.tagouting &&
|
||||||
c->mon == selmon) {
|
c->mon == selmon) {
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
c->geom.x = m->w.x + overviewgappo;
|
c->geom.x = m->w.x + overviewgappo;
|
||||||
|
|
@ -220,7 +220,7 @@ void grid(Monitor *m) {
|
||||||
c->bw = m->visible_clients == 1 && no_border_when_single && smartgaps
|
c->bw = m->visible_clients == 1 && no_border_when_single && smartgaps
|
||||||
? 0
|
? 0
|
||||||
: borderpx;
|
: borderpx;
|
||||||
if (VISIBLEON(c, c->mon) && !c->iskilling && !c->animation.tagouting &&
|
if (VISIBLEON(c, c->mon) && !client_should_ignore_focus(c) && !c->iskilling && !c->animation.tagouting &&
|
||||||
c->mon == selmon) {
|
c->mon == selmon) {
|
||||||
cx = m->w.x + (i % cols) * (cw + overviewgappi);
|
cx = m->w.x + (i % cols) * (cw + overviewgappi);
|
||||||
cy = m->w.y + (i / cols) * (ch + overviewgappi);
|
cy = m->w.y + (i / cols) * (ch + overviewgappi);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue