added some flicker prevention
666fae97
1 file(s) · +3 −1
| 262 | 262 | c->maxw == c->minw && c->maxh == c->minh); |
|
| 263 | 263 | settitle(c); |
|
| 264 | 264 | ||
| 265 | + | if(isvisible(c)) |
|
| 266 | + | sel = c; |
|
| 267 | + | arrange(NULL); |
|
| 265 | 268 | XMapWindow(dpy, c->win); |
|
| 266 | 269 | XMapWindow(dpy, c->title); |
|
| 267 | 270 | if(isvisible(c)) |
|
| 268 | 271 | focus(c); |
|
| 269 | - | arrange(NULL); |
|
| 270 | 272 | } |
|
| 271 | 273 | ||
| 272 | 274 | void |