compact a bit by condensing a few if-else's; from Thomas Pfaff

"go on then" oga@
This commit is contained in:
okan
2009-06-20 00:55:41 +00:00
parent 58d12134b1
commit bcc0f73bb6
5 changed files with 7 additions and 31 deletions

View File

@@ -29,10 +29,7 @@ input_keycodetrans(KeyCode kc, u_int state, enum ctltype *ctl, char *chr)
*ctl = CTL_NONE;
*chr = '\0';
if (state & ShiftMask)
ks = XKeycodeToKeysym(X_Dpy, kc, 1);
else
ks = XKeycodeToKeysym(X_Dpy, kc, 0);
ks = XKeycodeToKeysym(X_Dpy, kc, (state & ShiftMask) ? 1 : 0);
/* Look for control characters. */
switch (ks) {