mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-04 04:06:21 -05:00
opt: optimize global client focus logic
This commit is contained in:
parent
43257ad49c
commit
fc13b0ff15
1 changed files with 4 additions and 2 deletions
|
|
@ -692,8 +692,10 @@ arrange(Monitor *m, bool want_animation, bool from_view) {
|
|||
|
||||
if (c->mon == m && (c->isglobal || c->isunglobal)) {
|
||||
c->tags = m->tagset[m->seltags];
|
||||
if (c->mon->sel == NULL)
|
||||
focusclient(c, 0);
|
||||
}
|
||||
|
||||
if (from_view && m->sel == NULL && c->isglobal && VISIBLEON(c, m)) {
|
||||
focusclient(c, 1);
|
||||
}
|
||||
|
||||
if (VISIBLEON(c, m)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue