X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=event.c;h=95b94cc36f85151dde5b650a8550f1d2771600f6;hb=0464e42231199d7a6ea45e46cf7798f2b6cf972c;hp=aa074275ccc300a2554dfcbd803a4af5e64fbe1d;hpb=0c7bcc24cbd0d721a4e7d152c05886ac30cc4af3;p=dwm.git diff --git a/event.c b/event.c index aa07427..95b94cc 100644 --- a/event.c +++ b/event.c @@ -23,7 +23,7 @@ typedef struct { const char *browse[] = { "firefox", NULL }; const char *gimp[] = { "gimp", NULL }; const char *term[] = { - "urxvtc", "-tr", "+sb", "-bg", "black", "-fg", "white", "-cr", "white", + "urxvt", "-tr", "+sb", "-bg", "black", "-fg", "white", "-cr", "white", "-fn", "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", NULL }; const char *xlock[] = { "xlock", NULL }; @@ -267,7 +267,7 @@ expose(XEvent *e) static void keypress(XEvent *e) { - static unsigned int len = key ? sizeof(key) / sizeof(key[0]) : 0; + static unsigned int len = sizeof(key) / sizeof(key[0]); unsigned int i; KeySym keysym; XKeyEvent *ev = &e->xkey; @@ -370,7 +370,7 @@ void (*handler[LASTEvent]) (XEvent *) = { void grabkeys() { - static unsigned int len = key ? sizeof(key) / sizeof(key[0]) : 0; + static unsigned int len = sizeof(key) / sizeof(key[0]); unsigned int i; KeyCode code;