diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-03-02 15:14:40 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-03-02 15:14:40 +0100 |
| commit | a686c9ccd293efd543b84c137d91fbeb0f95a621 (patch) | |
| tree | 6060e0a032aa28579197057ad3315ba136273586 /main.c | |
| parent | some changes to updatesizehints, I don't change the aspect ratio algorithm no... (diff) | |
| download | dwm-a686c9ccd293efd543b84c137d91fbeb0f95a621.tar.gz dwm-a686c9ccd293efd543b84c137d91fbeb0f95a621.zip | |
we don't need to set the font all the time
Diffstat (limited to '')
| -rw-r--r-- | main.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -205,6 +205,8 @@ setup(void) { | |||
| 205 | dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen)); | 205 | dc.drawable = XCreatePixmap(dpy, root, sw, bh, DefaultDepth(dpy, screen)); |
| 206 | dc.gc = XCreateGC(dpy, root, 0, 0); | 206 | dc.gc = XCreateGC(dpy, root, 0, 0); |
| 207 | XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); | 207 | XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); |
| 208 | if(!dc.font.set) | ||
| 209 | XSetFont(dpy, dc.gc, dc.font.xfont->fid); | ||
| 208 | /* multihead support */ | 210 | /* multihead support */ |
| 209 | selscreen = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask); | 211 | selscreen = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask); |
| 210 | } | 212 | } |
