changeset: 367:50576bf2aa83
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Sat Sep 11 13:37:01 2010 +0100
files: README dmenu.c
description:
update to libdc, fixed utf8 bug
diff -r 23bd778df432 -r 50576bf2aa83 README
--- a/README Fri Aug 20 19:57:13 2010 +0100
+++ b/README Sat Sep 11 13:37:01 2010 +0100
@@ -7,7 +7,7 @@
------------
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
diff -r 23bd778df432 -r 50576bf2aa83 dmenu.c
--- a/dmenu.c Fri Aug 20 19:57:13 2010 +0100
+++ b/dmenu.c Sat Sep 11 13:37:01 2010 +0100
@@ -10,7 +10,7 @@
#ifdef XINERAMA
#include <X11/extensions/Xinerama.h>
#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 MIN(a,b) ((a) < (b) ? (a) : (b))
@@ -230,7 +230,7 @@
}
switch(ksym) {
default:
- if(isprint(*buf))
+ if(!iscntrl(*buf))
insert(buf, strlen(buf));
break;
case XK_Delete:
Received on Sat Sep 11 2010 - 14:37:06 CEST
This archive was generated by hypermail 2.2.0 : Sat Sep 11 2010 - 14:48:04 CEST