diff options
author | jenglish <jenglish@noemail.net> | 2006-01-20 18:42:03 (GMT) |
---|---|---|
committer | jenglish <jenglish@noemail.net> | 2006-01-20 18:42:03 (GMT) |
commit | c394aa4303959f0989a1b0dd178bcc24fd54791a (patch) | |
tree | f606837b2bd183120d27bef7e42d23b8b04d6116 /generic/tkEvent.c | |
parent | 036db361317b5b59cb382ac598d73baccdc857d3 (diff) | |
download | tk-c394aa4303959f0989a1b0dd178bcc24fd54791a.zip tk-c394aa4303959f0989a1b0dd178bcc24fd54791a.tar.gz tk-c394aa4303959f0989a1b0dd178bcc24fd54791a.tar.bz2 |
XIM fixes [See #905830, patch tk84-xim-fixes.patch]:
+ Revert 2005-12-05 patch disabling XIM when SCIM in use;
+ Make sure all X events get passed to XFilterEvent,
including those without a corresponding Tk window.
FossilOrigin-Name: 23f9522c8ba7ecb20fa129bf6d05c5360ec0d947
Diffstat (limited to 'generic/tkEvent.c')
-rw-r--r-- | generic/tkEvent.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkEvent.c b/generic/tkEvent.c index 145d5d7..1eb7944 100644 --- a/generic/tkEvent.c +++ b/generic/tkEvent.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkEvent.c,v 1.17.2.7 2005/11/30 21:13:12 hobbs Exp $ + * RCS: @(#) $Id: tkEvent.c,v 1.17.2.8 2006/01/20 18:42:04 jenglish Exp $ */ #include "tkPort.h" @@ -948,8 +948,10 @@ Tk_HandleEvent(eventPtr) XSetICFocus(winPtr->inputContext); } } - if (XFilterEvent(eventPtr, None)) { - goto done; + if (eventPtr->type == KeyPress || eventPtr->type == KeyRelease) { + if (XFilterEvent(eventPtr, None)) { + goto done; + } } } #endif /* TK_USE_INPUT_METHODS */ |