diff options
author | Connor Lane Smith <cls@lubutu.com> | 2010-09-11 13:37:01 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2010-09-11 13:37:01 +0100 |
commit | 3c366bd73d1812845b0afc185ccaba9bbc871854 (patch) | |
tree | f67b59f9f5f95c9b7edadbf4c85a66470bafde0f /dmenu.c | |
parent | 75a19c35bd9c880bbfdc5cbf3fd807803d04de89 (diff) |
update to libdc, fixed utf8 bug
Diffstat (limited to 'dmenu.c')
-rw-r--r-- | dmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |