diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-02-10 11:39:44 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-02-10 11:39:44 (GMT) |
commit | 58dee83cb742162ddda8b91eb7a8132aebaa68b4 (patch) | |
tree | 5dba104bf29ccd9db2e05bec03d59c9cb9b31ac3 | |
parent | ec742a6bfebae051f4d9b1a9651b3674edf1174a (diff) | |
parent | 1a74e9de135efaea49d48f7974960bc6e8426949 (diff) | |
download | tk-58dee83cb742162ddda8b91eb7a8132aebaa68b4.zip tk-58dee83cb742162ddda8b91eb7a8132aebaa68b4.tar.gz tk-58dee83cb742162ddda8b91eb7a8132aebaa68b4.tar.bz2 |
Fix [7d967c68a09e07e355358af40f36dd5dd84c7022|7d967c68a0] follow-up: Tk applications segmentation fault when ibus-daemon IME is restarted. Patch by Brad Lanam.
-rw-r--r-- | generic/tkWindow.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c index 9a31365..ed57280 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -475,9 +475,6 @@ GetScreen( dispPtr->cursorFont = None; dispPtr->warpWindow = NULL; dispPtr->multipleAtom = None; -#ifdef TK_USE_INPUT_METHODS - dispPtr->ximGeneration = 0; -#endif /*TK_USE_INPUT_METHODS*/ /* * By default we do want to collapse motion events in @@ -656,6 +653,7 @@ TkAllocWindow( winPtr->flags = 0; winPtr->handlerList = NULL; #ifdef TK_USE_INPUT_METHODS + winPtr->ximGeneration = 0; winPtr->inputContext = NULL; #endif /* TK_USE_INPUT_METHODS */ winPtr->tagPtr = NULL; |