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 | |
parent | 75a19c35bd9c880bbfdc5cbf3fd807803d04de89 (diff) |
update to libdc, fixed utf8 bug
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | dmenu.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -7,7 +7,7 @@ Requirements | |||
7 | ------------ | 7 | ------------ |
8 | In order to build dmenu you need the Xlib header files. | 8 | In order to build dmenu you need the Xlib header files. |
9 | 9 | ||
10 | You also need libdraw, available from http://hg.suckless.org/libdraw | 10 | You also need libdc, available from http://hg.suckless.org/libdraw |
11 | 11 | ||
12 | 12 | ||
13 | Installation | 13 | Installation |
@@ -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: |