diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2008-05-19 18:07:54 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2008-05-19 18:07:54 +0000 |
commit | 180ab48b217df4d99b0c912e293bb919f027a5b3 (patch) | |
tree | 571b2c8e3d7958f52d0bd31416618d1009ed0b75 /app/cwm/input.c | |
parent | c68550331b64e1671ef0f7827245be0f0219af7e (diff) |
stop normalizing search input; searching and matching are still
case-insensitive. since this was the only use of normalizing input,
simplify as well.
allows one to exec with mixed case unmatched commands.
"works for me" oga@
Diffstat (limited to 'app/cwm/input.c')
-rw-r--r-- | app/cwm/input.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/cwm/input.c b/app/cwm/input.c index 28c973bcb..5cfae4e26 100644 --- a/app/cwm/input.c +++ b/app/cwm/input.c @@ -15,15 +15,14 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: input.c,v 1.5 2008/04/15 18:33:13 okan Exp $ + * $Id: input.c,v 1.6 2008/05/19 18:07:53 okan Exp $ */ #include "headers.h" #include "calmwm.h" int -input_keycodetrans(KeyCode kc, u_int state, - enum ctltype *ctl, char *chr, int normalize) +input_keycodetrans(KeyCode kc, u_int state, enum ctltype *ctl, char *chr) { int ks; @@ -107,8 +106,6 @@ input_keycodetrans(KeyCode kc, u_int state, return (-1); *chr = (char)ks; - if (normalize) - *chr = tolower(*chr); return (0); } |