diff options
| author | Connor Lane Smith <[email protected]> | 2010-09-11 13:37:01 +0100 |
|---|---|---|
| committer | Connor Lane Smith <[email protected]> | 2010-09-11 13:37:01 +0100 |
| commit | 3c366bd73d1812845b0afc185ccaba9bbc871854 (patch) | |
| tree | f67b59f9f5f95c9b7edadbf4c85a66470bafde0f | |
| parent | arrow offset (diff) | |
| download | dmenu-3c366bd73d1812845b0afc185ccaba9bbc871854.tar.gz dmenu-3c366bd73d1812845b0afc185ccaba9bbc871854.tar.bz2 dmenu-3c366bd73d1812845b0afc185ccaba9bbc871854.zip | |
update to libdc, fixed utf8 bug
| -rw-r--r-- | README | 2 | ||||
| -rw-r--r-- | dmenu.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/README b/README index 98647bf..840e677 100644 --- a/README +++ b/README @@ -7,7 +7,7 @@ Requirements ------------ In order to build dmenu you need the Xlib header files. -You also need libdraw, available from http://hg.suckless.org/libdraw +You also need libdc, available from http://hg.suckless.org/libdraw Installation diff --git a/dmenu.c b/dmenu.c index 9dd0363..908f548 100644 --- a/dmenu.c +++ b/dmenu.c @@ -10,7 +10,7 @@ #ifdef XINERAMA #include <X11/extensions/Xinerama.h> #endif -#include <draw.h> +#include <dc.h> #define INRECT(x,y,rx,ry,rw,rh) ((x) >= (rx) && (x) < (rx)+(rw) && (y) >= (ry) && (y) < (ry)+(rh)) #define MIN(a,b) ((a) < (b) ? (a) : (b)) @@ -230,7 +230,7 @@ keypress(XKeyEvent *ev) { } switch(ksym) { default: - if(isprint(*buf)) + if(!iscntrl(*buf)) insert(buf, strlen(buf)); break; case XK_Delete: |