Xinqi Bao's Git
projects
/
dmenu.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
75a19c3
)
update to libdc, fixed utf8 bug
author
Connor Lane Smith <
[email protected]
>
Sat, 11 Sep 2010 12:37:01 +0000
(13:37 +0100)
committer
Connor Lane Smith <
[email protected]
>
Sat, 11 Sep 2010 12:37:01 +0000
(13:37 +0100)
README
diff
|
blob
|
history
dmenu.c
diff
|
blob
|
history
diff --git
a/README
b/README
index
98647bf
..
840e677
100644
(file)
--- a/
README
+++ b/
README
@@
-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 libd
raw
, available from http://hg.suckless.org/libdraw
+You also need libd
c
, available from http://hg.suckless.org/libdraw
Installation
Installation
diff --git
a/dmenu.c
b/dmenu.c
index
9dd0363
..
908f548
100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-10,7
+10,7
@@
#ifdef XINERAMA
#include <X11/extensions/Xinerama.h>
#endif
#ifdef XINERAMA
#include <X11/extensions/Xinerama.h>
#endif
-#include <d
raw
.h>
+#include <d
c
.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))
#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:
}
switch(ksym) {
default:
- if(
isprint
(*buf))
+ if(
!iscntrl
(*buf))
insert(buf, strlen(buf));
break;
case XK_Delete:
insert(buf, strlen(buf));
break;
case XK_Delete: