Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
some cleanups/fixes inspired by Jukka Salmi's feedback
[dwm.git]
/
event.c
diff --git
a/event.c
b/event.c
index
aa07427
..
95b94cc
100644
(file)
--- 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[] = {
const char *browse[] = { "firefox", NULL };
const char *gimp[] = { "gimp", NULL };
const char *term[] = {
- "urxvt
c
", "-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 };
"-fn", "-*-terminus-medium-*-*-*-13-*-*-*-*-*-iso10646-*", NULL
};
const char *xlock[] = { "xlock", NULL };
@@
-267,7
+267,7
@@
expose(XEvent *e)
static void
keypress(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;
unsigned int i;
KeySym keysym;
XKeyEvent *ev = &e->xkey;
@@
-370,7
+370,7
@@
void (*handler[LASTEvent]) (XEvent *) = {
void
grabkeys()
{
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;
unsigned int i;
KeyCode code;