diff options
Diffstat (limited to 'dmenu.c')
-rw-r--r-- | dmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ | |||
10 | #ifdef XINERAMA | 10 | #ifdef XINERAMA |
11 | #include <X11/extensions/Xinerama.h> | 11 | #include <X11/extensions/Xinerama.h> |
12 | #endif | 12 | #endif |
13 | #include <draw.h> | 13 | #include <dc.h> |
14 | 14 | ||
15 | #define INRECT(x,y,rx,ry,rw,rh) ((x) >= (rx) && (x) < (rx)+(rw) && (y) >= (ry) && (y) < (ry)+(rh)) | 15 | #define INRECT(x,y,rx,ry,rw,rh) ((x) >= (rx) && (x) < (rx)+(rw) && (y) >= (ry) && (y) < (ry)+(rh)) |
16 | #define MIN(a,b) ((a) < (b) ? (a) : (b)) | 16 | #define MIN(a,b) ((a) < (b) ? (a) : (b)) |
@@ -230,7 +230,7 @@ keypress(XKeyEvent *ev) { | |||
230 | } | 230 | } |
231 | switch(ksym) { | 231 | switch(ksym) { |
232 | default: | 232 | default: |
233 | if(isprint(*buf)) | 233 | if(!iscntrl(*buf)) |
234 | insert(buf, strlen(buf)); | 234 | insert(buf, strlen(buf)); |
235 | break; | 235 | break; |
236 | case XK_Delete: | 236 | case XK_Delete: |