summaryrefslogtreecommitdiffstats
path: root/generic/tkWindow.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-10-16 21:45:28 (GMT)
committerhobbs <hobbs>2001-10-16 21:45:28 (GMT)
commit4466b21bccaf576efd87ae1952005a07a6685c80 (patch)
tree48406a612a107f0acd22949b662b158926d7ac11 /generic/tkWindow.c
parent3008a1834b08ab5ea98a4be42551d760eb3f20fd (diff)
downloadtk-4466b21bccaf576efd87ae1952005a07a6685c80.zip
tk-4466b21bccaf576efd87ae1952005a07a6685c80.tar.gz
tk-4466b21bccaf576efd87ae1952005a07a6685c80.tar.bz2
* generic/tkWindow.c (OpenIM): Added simple XIM patch to enable
basic XIM input on Unix. [Patch #412727] (fabian)
Diffstat (limited to 'generic/tkWindow.c')
-rw-r--r--generic/tkWindow.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index c9481c5..ae02e35 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWindow.c,v 1.39 2001/09/26 21:36:19 pspjuth Exp $
+ * RCS: @(#) $Id: tkWindow.c,v 1.40 2001/10/16 21:45:28 hobbs Exp $
*/
#include "tkPort.h"
@@ -2571,6 +2571,11 @@ OpenIM(dispPtr)
#else
unsigned short i;
XIMStyles *stylePtr;
+ char *modifier_list;
+
+ if ((modifier_list = XSetLocaleModifiers("")) == NULL) {
+ goto error;
+ }
dispPtr->inputMethod = XOpenIM(dispPtr->display, NULL, NULL, NULL);
if (dispPtr->inputMethod == NULL) {