undo the focus optimisation patch for 5.9
a692bdcf
1 file(s) · +2 −7
| 389 | 389 | showhide(m->stack); |
|
| 390 | 390 | else for(m = mons; m; m = m->next) |
|
| 391 | 391 | showhide(m->stack); |
|
| 392 | + | focus(NULL); |
|
| 392 | 393 | if(m) |
|
| 393 | 394 | arrangemon(m); |
|
| 394 | 395 | else for(m = mons; m; m = m->next) |
|
| 597 | 598 | updatebars(); |
|
| 598 | 599 | for(m = mons; m; m = m->next) |
|
| 599 | 600 | XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh); |
|
| 600 | - | focus(NULL); |
|
| 601 | 601 | arrange(NULL); |
|
| 602 | 602 | } |
|
| 603 | 603 | } |
|
| 1149 | 1149 | attach(c); |
|
| 1150 | 1150 | attachstack(c); |
|
| 1151 | 1151 | XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */ |
|
| 1152 | + | XMapWindow(dpy, c->win); |
|
| 1152 | 1153 | setclientstate(c, NormalState); |
|
| 1153 | 1154 | arrange(c->mon); |
|
| 1154 | - | XMapWindow(dpy, c->win); |
|
| 1155 | - | focus(c); |
|
| 1156 | 1155 | } |
|
| 1157 | 1156 | ||
| 1158 | 1157 | void |
|
| 1617 | 1616 | tag(const Arg *arg) { |
|
| 1618 | 1617 | if(selmon->sel && arg->ui & TAGMASK) { |
|
| 1619 | 1618 | selmon->sel->tags = arg->ui & TAGMASK; |
|
| 1620 | - | focus(NULL); |
|
| 1621 | 1619 | arrange(selmon); |
|
| 1622 | 1620 | } |
|
| 1623 | 1621 | } |
|
| 1698 | 1696 | newtags = selmon->sel->tags ^ (arg->ui & TAGMASK); |
|
| 1699 | 1697 | if(newtags) { |
|
| 1700 | 1698 | selmon->sel->tags = newtags; |
|
| 1701 | - | focus(NULL); |
|
| 1702 | 1699 | arrange(selmon); |
|
| 1703 | 1700 | } |
|
| 1704 | 1701 | } |
|
| 1709 | 1706 | ||
| 1710 | 1707 | if(newtagset) { |
|
| 1711 | 1708 | selmon->tagset[selmon->seltags] = newtagset; |
|
| 1712 | - | focus(NULL); |
|
| 1713 | 1709 | arrange(selmon); |
|
| 1714 | 1710 | } |
|
| 1715 | 1711 | } |
|
| 1975 | 1971 | selmon->seltags ^= 1; /* toggle sel tagset */ |
|
| 1976 | 1972 | if(arg->ui & TAGMASK) |
|
| 1977 | 1973 | selmon->tagset[selmon->seltags] = arg->ui & TAGMASK; |
|
| 1978 | - | focus(NULL); |
|
| 1979 | 1974 | arrange(selmon); |
|
| 1980 | 1975 | } |
|
| 1981 | 1976 | ||