diff options
author | Connor Lane Smith <cls@lubutu.com> | 2010-08-19 16:17:57 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2010-08-19 16:17:57 +0100 |
commit | c7a8f17bd20d3ba05e38a91430c565579d9f55bb (patch) | |
tree | 68055bb04fd8557d21124224afa9c4a76c7a96c1 | |
parent | 128d4cf376beffbef82b93d6305ed7856eea10bd (diff) |
new libdraw
-rw-r--r-- | dmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -132,7 +132,7 @@ drawmenu(void) { | |||
132 | if(next) | 132 | if(next) |
133 | drawtext(dc, ">", normcol); | 133 | drawtext(dc, ">", normcol); |
134 | } | 134 | } |
135 | commitdraw(dc, win, mw, mh); | 135 | mapdraw(dc, win, mw, mh); |
136 | } | 136 | } |
137 | 137 | ||
138 | char * | 138 | char * |
@@ -478,7 +478,7 @@ setup(void) { | |||
478 | CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); | 478 | CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); |
479 | 479 | ||
480 | grabkeyboard(); | 480 | grabkeyboard(); |
481 | setcanvas(dc, mw, mh); | 481 | resizedraw(dc, mw, mh); |
482 | inputw = MIN(inputw, mw/3); | 482 | inputw = MIN(inputw, mw/3); |
483 | promptw = prompt ? MIN(textw(dc, prompt), mw/5) : 0; | 483 | promptw = prompt ? MIN(textw(dc, prompt), mw/5) : 0; |
484 | XMapRaised(dc->dpy, win); | 484 | XMapRaised(dc->dpy, win); |