changeset: 362:2567d5cdbbc6
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Thu Aug 19 16:17:57 2010 +0100
files: dmenu.c
description:
new libdraw
diff -r 0871becfffdc -r 2567d5cdbbc6 dmenu.c
--- a/dmenu.c Wed Aug 18 17:35:23 2010 +0100
+++ b/dmenu.c Thu Aug 19 16:17:57 2010 +0100
@@ -132,7 +132,7 @@
if(next)
drawtext(dc, ">", normcol);
}
- commitdraw(dc, win, mw, mh);
+ mapdraw(dc, win, mw, mh);
}
char *
@@ -478,7 +478,7 @@
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);
Received on Thu Aug 19 2010 - 17:18:01 CEST
This archive was generated by hypermail 2.2.0 : Thu Aug 19 2010 - 17:24:05 CEST