Browse Source

update to libdc, fixed utf8 bug

master
Connor Lane Smith 14 years ago
parent
commit
3c366bd73d
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      README
  2. +2
    -2
      dmenu.c

+ 1
- 1
README View File

@ -7,7 +7,7 @@ Requirements
------------ ------------
In order to build dmenu you need the Xlib header files. 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 Installation


+ 2
- 2
dmenu.c View File

@ -10,7 +10,7 @@
#ifdef XINERAMA #ifdef XINERAMA
#include <X11/extensions/Xinerama.h> #include <X11/extensions/Xinerama.h>
#endif #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 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)) #define MIN(a,b) ((a) < (b) ? (a) : (b))
@ -230,7 +230,7 @@ keypress(XKeyEvent *ev) {
} }
switch(ksym) { switch(ksym) {
default: default:
if(isprint(*buf))
if(!iscntrl(*buf))
insert(buf, strlen(buf)); insert(buf, strlen(buf));
break; break;
case XK_Delete: case XK_Delete:


Loading…
Cancel
Save