update to libdc, fixed utf8 bug
3c366bd7
2 file(s) · +3 −3
| 7 | 7 | ------------ |
|
| 8 | 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 | 13 | Installation |
| 10 | 10 | #ifdef XINERAMA |
|
| 11 | 11 | #include <X11/extensions/Xinerama.h> |
|
| 12 | 12 | #endif |
|
| 13 | - | #include <draw.h> |
|
| 13 | + | #include <dc.h> |
|
| 14 | 14 | ||
| 15 | 15 | #define INRECT(x,y,rx,ry,rw,rh) ((x) >= (rx) && (x) < (rx)+(rw) && (y) >= (ry) && (y) < (ry)+(rh)) |
|
| 16 | 16 | #define MIN(a,b) ((a) < (b) ? (a) : (b)) |
|
| 230 | 230 | } |
|
| 231 | 231 | switch(ksym) { |
|
| 232 | 232 | default: |
|
| 233 | - | if(isprint(*buf)) |
|
| 233 | + | if(!iscntrl(*buf)) |
|
| 234 | 234 | insert(buf, strlen(buf)); |
|
| 235 | 235 | break; |
|
| 236 | 236 | case XK_Delete: |
|