From c7a8f17bd20d3ba05e38a91430c565579d9f55bb Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Thu, 19 Aug 2010 16:17:57 +0100 Subject: new libdraw --- dmenu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dmenu.c b/dmenu.c index f743be8..f6e6931 100644 --- a/dmenu.c +++ b/dmenu.c @@ -132,7 +132,7 @@ drawmenu(void) { if(next) drawtext(dc, ">", normcol); } - commitdraw(dc, win, mw, mh); + mapdraw(dc, win, mw, mh); } char * @@ -478,7 +478,7 @@ setup(void) { CWOverrideRedirect | CWBackPixmap | CWEventMask, &wa); grabkeyboard(); - setcanvas(dc, mw, mh); + resizedraw(dc, mw, mh); inputw = MIN(inputw, mw/3); promptw = prompt ? MIN(textw(dc, prompt), mw/5) : 0; XMapRaised(dc->dpy, win); -- cgit v1.2.3-70-g09d2