From: handa Date: Thu, 5 Jan 2006 11:35:48 +0000 (+0000) Subject: (win_filter): Try to convert arg to key only when X-Git-Tag: REL-1-3-1~25 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=5a54afdf077c8b925d8d7c7865be94a107cfe08a;p=m17n%2Fm17n-lib.git (win_filter): Try to convert arg to key only when arg is not NULL. --- 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;