From 5a54afdf077c8b925d8d7c7865be94a107cfe08a Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 5 Jan 2006 11:35:48 +0000 Subject: [PATCH] (win_filter): Try to convert arg to key only when arg is not NULL. --- src/input-gui.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/input-gui.c b/src/input-gui.c index 4406713..69b5842 100644 --- a/src/input-gui.c +++ b/src/input-gui.c @@ -158,10 +158,8 @@ win_filter (MInputContext *ic, MSymbol key, void *arg) || ! ic->active) return 0; - if (key == Mnil) + if (key == Mnil && arg) { - if (! arg) - return 0; key = minput_event_to_key (win_ic_info->frame, arg); if (key == Mnil) return 1; -- 1.7.10.4