From ef7a73c51f1e8c490b81c82229f4d9430f1a010d Mon Sep 17 00:00:00 2001 From: bernd Date: Fri, 27 Apr 2007 18:10:39 +0000 Subject: Apply cwm-3-input_shift.diff from http://aon.iki.fi/cwm/. --- input.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index 4114c10..28ce7f4 100644 --- a/input.c +++ b/input.c @@ -4,7 +4,7 @@ * Copyright (c) 2004 Marius Aamodt Eriksen * All rights reserved. * - * $Id: input.c,v 1.1.1.1 2007/04/27 17:58:48 bernd Exp $ + * $Id: input.c,v 1.2 2007/04/27 18:10:39 bernd Exp $ */ #include "headers.h" @@ -19,7 +19,10 @@ input_keycodetrans(KeyCode kc, u_int state, *ctl = CTL_NONE; *chr = '\0'; - ks = XKeycodeToKeysym(G_dpy, kc, 0); + if (state & ShiftMask) + ks = XKeycodeToKeysym(G_dpy, kc, 1); + else + ks = XKeycodeToKeysym(G_dpy, kc, 0); /* Look for control characters. */ switch (ks) { -- cgit v1.2.3-2-gb3c3