fixed linking bug (thanks Jacob Nixdorf) & iscntrl corner case
This commit is contained in:
parent
3ce8f8de3f
commit
42b9a03168
|
@ -16,7 +16,7 @@ XINERAMAFLAGS = -DXINERAMA
|
||||||
|
|
||||||
# includes and libs
|
# includes and libs
|
||||||
INCS = -I${X11INC}
|
INCS = -I${X11INC}
|
||||||
LIBS = -L${X11LIB} -ldraw -lX11 ${XINERAMALIBS}
|
LIBS = -L${X11LIB} -ldc -lX11 ${XINERAMALIBS}
|
||||||
|
|
||||||
# flags
|
# flags
|
||||||
CPPFLAGS = -D_BSD_SOURCE -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
CPPFLAGS = -D_BSD_SOURCE -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
||||||
|
|
|
@ -230,7 +230,7 @@ keypress(XKeyEvent *ev) {
|
||||||
}
|
}
|
||||||
switch(ksym) {
|
switch(ksym) {
|
||||||
default:
|
default:
|
||||||
if(*buf)
|
if(!iscntrl(*buf))
|
||||||
insert(buf, strlen(buf));
|
insert(buf, strlen(buf));
|
||||||
break;
|
break;
|
||||||
case XK_Delete:
|
case XK_Delete:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user