summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixEvent.c
Commit message (Collapse)AuthorAgeFilesLines
* Purge RCS Keywordsdgp2011-06-081-2/+0
|\ | | | | FossilOrigin-Name: b8a1385217cc117d6962c234f0a4d28ff10e089c
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ | | | | | | FossilOrigin-Name: 3f95fbe0ce14948fd409844b915c18ef25d7d0a0
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | | | | | | | | FossilOrigin-Name: a74f32bb6369d3e66e661145c81a98a14ed79b3a
| | * Fix [Bug 1522467] using fix similar to that used in Tcl recently.dkf2006-12-221-24/+29
| | | | | | | | | FossilOrigin-Name: 1140685f39a8a0df64d4c1ae912cc8a524eacacb
| | * XIM fixes [See #905830, patch tk84-xim-fixes.patch]:jenglish2006-01-201-30/+12
| | | | | | | | | | | | | | | | | | | | | | | | + 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
| | * remove extraneous consthobbs2005-12-051-2/+2
| | | | | | | | | FossilOrigin-Name: 462c085049c41baa81c2714937b35ec74f3fa3f2
| | * Added a workaround for SCIMrmax2005-12-051-2/+23
| | | | | | | | | FossilOrigin-Name: 264a44bb8e10e7cadf4751b002fbc02764d8372b
| | * * generic/tkInt.h: Backport of shutdown safety mods from the HEADdavygrvy2004-10-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkMenu.c: dating from 2003-12-21 * generic/tkUtil.c: * generic/tkWindow.c: * mac/tkMacButton.c: * unix/tkUnixEvent.c: * win/tkWin32Dll.c: * win/tkWinEmbed.c: * win/tkWinMenu.c: * win/tkWinX.c: FossilOrigin-Name: 9eb5a917089fb12e1052c4ac69deda9c2a92eee5
| | * * generic/tkClipboard.c: Move TkClipCleanup from tkClipboard.chobbs2004-05-031-1/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mac/tkMacXStubs.c: to being implemented in a platform * macosx/tkMacOSXXStubs.c: specific manner. The cleanup order was * unix/tkUnixEvent.c: bad at least on Windows, where we * win/tkWinX.c: reset/cleared display info that was still needed for the clipboard to render. [Bug #939389, #822002, #732662] FossilOrigin-Name: 08825fb396bbe18cbace4b256f4e8f4216c4e9b5
| | * * unix/tkUnixEvent.c (TkpCloseDisplay): Don'tmdejong2003-07-161-10/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test for XCloseIM bug when the XFree86 version is newer than 4.0 since the layout of the XIM structure has changed. The check is not needed for newer XFree86 releases since the bug we are checking for was fixed in the 4.2.99.2 release. [Bug 755530] FossilOrigin-Name: a89b9350d3e04b4d40642b260d13409598a6922a
| * | Cast some NULLs to (void *) in order to quash "missing sentinel in function ↵stwo2011-01-061-2/+2
| | | | | | | | | | | | | | | call" compiler warnings. FossilOrigin-Name: b7a58eae613a06ad7ad9e2cf2aa3a294804fc3b8
| * | Fix [Bug 1373712] and [Bug 1924761].dkf2010-01-021-8/+35
| | | | | | | | | FossilOrigin-Name: 0910f89f2a66f1b59e61622af3ad8583afd1bcce
| * | Oops!dkf2010-01-021-4/+4
| | | | | | | | | FossilOrigin-Name: 157dd6aed5835a1b7aa7206613ed914d6da8851e
| * | [Bug 1924761]: Consolidate calls to XFilterEvent to make input methods work.dkf2010-01-011-7/+25
| | | | | | | | | FossilOrigin-Name: 81fa441963865bfb33b47c83574f2b6fca9300f7
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-1/+1
| | | | | | | | | | | | | | | using useful casts internally. FossilOrigin-Name: 142e016e7b17277d81257da90477297eb9aaa05a
* | | Cast some NULLs to (void *) in order to quash "missing sentinel in function ↵stwo2011-01-061-2/+2
| | | | | | | | | | | | | | | call" compiler warnings. FossilOrigin-Name: 81e50c85ed139b258d9edf452eaa784fb70dd374
* | | Eliminate many unnecessary (ClientData) type casts.nijtmans2010-06-151-4/+4
| | | | | | | | | FossilOrigin-Name: 0d406a834b9595e63e75feebf8d48fe9915a58df
* | | [Bug 2926819]: Factor out the pointer warping code a bit better and extend itdkf2010-01-061-1/+17
| | | | | | | | | | | | | | | | | | to work on OSX too. FossilOrigin-Name: 0ebe1c29cabeaa15bb8b9c2ad2f163f7d8c1cc72
* | | Fix [Bug 1373712] and [Bug 1924761].dkf2010-01-021-5/+30
| | | | | | | | | FossilOrigin-Name: a5ab1bd805d9055802e3b0a110c7dbc80231f8b3
* | | [Bug 1924761]: Consolidate calls to XFilterEvent to make input methods work.dkf2010-01-011-7/+25
| | | | | | | | | FossilOrigin-Name: 245ce503fd6df59b539eb448593e7afa6552dc9a
* | | Fix gcc warning: ignoring return value of ‘strtol’,nijtmans2009-12-161-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | declared with attribute warn_unused_result Fix gcc warning: dereferencing pointer ‘xgePtr’ does break strict-aliasing rules FossilOrigin-Name: f5b1366fbe2cc2134608e614d9c6d055be875ba7
* | | fix GenericEvent Tcl_Panic errordas2008-10-221-2/+2
| | | | | | | | | FossilOrigin-Name: e06cf70512c4a41cb37595312af856114b6b3767
* | | Greatly clean up Tk's handling of the writability of the Tcl result object.dkf2008-10-051-1/+9
| | | | | | | | | FossilOrigin-Name: a83341a36174d2059bc339dea19260a38eda5a01
* | | After some discussion with Joe English and subsequently thegeorgeps2008-08-191-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | X.org developers (Keith Packard in particular), it was discovered that Tk is doing management of XIDs that it shouldn't need to do. The very common XC-MISC extension which has come with every version of X for the last 15 years is used with Xlib now, to retrieve the information about the used/unused XIDs. The public Tk_FreeXId is now a no-op. Joe English reviewed the patch, and said "please commit." The patch is associated with the bug tracker id: 2039720 generic/tkError.c: Remove the usage of TkpWindowWasRecentlyDeleted. generic/tkInt.decls: Update the declarations for the now unused internalstubs. generic/tkIntDecls.h: Regenerated based on tkInt.decls. generic/tkIntPlatDecls.h: Regenerated based on tkInt.decls. generic/tkStubInit.c generic/tkWindow.c: Remove the calls to TkInitXId, and TkFreeWindowId. macosx/tkMaxOSXPort.h: Remove TkFreeWindowId and TkInitXId macro definitions. macosx/tkMacOSXXStubs.c: Remove the no-op TkpWindowWasRecentlyDeleted. unix/tkUnixEvent.c: Remove call to TkFreeXId. unix/tkUnixXId.c: Remove a lot of unnecessary code (see above). win/tkWinPort.h: Remove TkFreeWindowId and TkInitXId. win/tkWinWindow.c: Remove TkpWindowWasRecentlyDeleted. FossilOrigin-Name: 8356aa0eec57fa7af4840febe78bf647259ff203
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-2/+2
|/ / | | | | FossilOrigin-Name: ddfd8bb6f7ecfa71a218a5dc88075a419e3e1d5c
* | XIM reorganization and cleanup; see [Patch 1919791] for details.jenglish2008-03-261-84/+34
| | | | | | FossilOrigin-Name: 8f1f01a39fbd09f4c0efc8e871b350f98d269e6c
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: e7868b44c1e7bffc63a053b87a96a4499757f80d
* | header cleanupdgp2007-09-071-2/+1
| | | | | | FossilOrigin-Name: 04ffea40ef0b3c0cad59a3e1576275019f29e913
* | Fix more type pun warnings (those not found by my local version of GCC)dkf2007-05-031-3/+3
| | | | | | FossilOrigin-Name: 3ca7875ba095ca07b0e1dfbe433830ca8513b229
* | Quell type-punning warnings from gcc/unix builddkf2007-01-121-2/+2
| | | | | | FossilOrigin-Name: 6dc8f9ef86b1d2a17a77267d21fcc35827316878
* | s/CRLF/LF/ghobbs2007-01-111-704/+704
| | | | | | FossilOrigin-Name: 07a3dc2babf1b38f41efeaef604a239794128d02
* | Fix [Bug 1522467] using fix similar to that used in Tcl recently.dkf2006-12-221-701/+704
| | | | | | FossilOrigin-Name: 5c2dc8498481c92750b523c75a68332fe86b2dbb
* | XIM fixes [See #905830, patch tk84-xim-fixes.patch].jenglish2006-01-201-30/+12
| | | | | | | | | | | | | | | | + 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: 6e812d710c71e2bcce1e25afda22c125d82394f8
* | remove extraneous consthobbs2005-12-071-2/+2
| | | | | | FossilOrigin-Name: bf84b9041738b6ffd7b74976a44e42e1cb35bdc6
* | * unix/tkUnixEvent.c (OpenIM): Added a workaround to allow atrmax2005-12-051-2/+23
| | | | | | | | | | | | | | | | least ASCII and the Compose key when typing into text and entry widgets on a system that uses SCIM. This has to be taken out again once the SCIM problems have been fixed. FossilOrigin-Name: c35ecf2e63d2d84d618e4a73f48ddc1e7d6579ef
* | ANSIfydkf2005-11-131-146/+143
| | | | | | FossilOrigin-Name: a76c47ef701c18ea2e482612f92cb02db43cecb2
* | * generic/tkClipboard.c: Move TkClipCleanup from tkClipboard.chobbs2004-05-031-1/+37
| | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXXStubs.c: to being implemented in a platform * unix/tkUnixEvent.c: specific manner. The cleanup order was * win/tkWinX.c: bad at least on Windows, where we reset/cleared display info that was still needed for the clipboard to render. [Bug #939389, #822002, #732662] FossilOrigin-Name: 6efb4b35bcd2c37f4d5f64c4c1a278b912cedc50
* | Replaced TclpGetTime() with Tcl_GetTime(), to removejenglish2004-01-311-3/+3
| | | | | | | | | | | | dependency on tclInt.h [Bug 874745]. FossilOrigin-Name: a43b78b260dfc5a8a0f99d70e86434df5a4a79dd
* | * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: to 'Tcl_Panic' (the function). The #define * generic/tkBitmap.c: of panic in tcl.h clearly states it is * generic/tkCanvArc.c: deprecated in the comments. * generic/tkCanvBmap.c: [Tcl Patch 865264] * generic/tkCanvImg.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvText.c: * generic/tkCanvWind.c: * generic/tkColor.c: * generic/tkConfig.c: * generic/tkCursor.c: * generic/tkError.c: * generic/tkEvent.c: * generic/tkFocus.c: * generic/tkFont.c: * generic/tkFrame.c: * generic/tkGC.c: * generic/tkGrid.c: * generic/tkImgBmap.c: * generic/tkImgPhoto.c: * generic/tkImgUtil.c: * generic/tkMenu.c: * generic/tkObj.c: * generic/tkPack.c: * generic/tkPlace.c: * generic/tkRectOval.c: * generic/tkSelect.c: * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkTextMark.c: * generic/tkTextWind.c: * generic/tkVisual.c: * generic/tkWindow.c: * mac/tkMacAppInit.c: * mac/tkMacAppearanceStubs.c: * mac/tkMacButton.c: * mac/tkMacDraw.c: * mac/tkMacEmbed.c: * mac/tkMacFont.c: * mac/tkMacInit.c: * mac/tkMacMenus.c: * mac/tkMacPort.h: * mac/tkMacSubwindows.c: * mac/tkMacWm.c: * mac/tkMacXStubs.c: * macosx/tkMacOSXEmbed.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXPort.h: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * unix/tkUnix3d.c: * unix/tkUnixColor.c: * unix/tkUnixEmbed.c: * unix/tkUnixEvent.c: * unix/tkUnixFocus.c: * unix/tkUnixFont.c: * unix/tkUnixSelect.c: * unix/tkUnixSend.c: * unix/tkUnixWm.c: * win/tkWin3d.c: * win/tkWinButton.c: * win/tkWinColor.c: * win/tkWinDialog.c: * win/tkWinDraw.c: * win/tkWinEmbed.c: * win/tkWinFont.c: * win/tkWinPixmap.c: * win/tkWinPointer.c: * win/tkWinScrlbr.c: * win/tkWinWm.c: * win/tkWinX.c: FossilOrigin-Name: a08e5aacfc9f6c5a344c2d05454773dac90710c2
* | * generic/tkEvent.c: Added three new functions: TkCreateExitHandler,davygrvy2003-12-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkInt.h: TkDeleteExitHandler, and TkFinalize. This adds * generic/tkMenu.c: an insertion point so Tk's exit handlers can be * generic/tkWindow.c: called on their own from tk85.dll's DllMain * mac/tkMacButton.c: for DLL_PROCESS_DETACH. These are private to * unix/tkUnixEvent.c: the binary and not exported. It is possible * win/tkWin32Dll.c: the Windows OS can unload Tk _prior_ to Tcl * win/tkWinEmbed.c: under some conditions such as ExitProcess(). * win/tkWinMenu.c: This avoids a dangling pointer problem when Tcl * win/tkWinX.c: does Tcl_Finalize after Tk has been unloaded. * win/winMain.c: DllMain's DLL_PROCESS_DETACH now protected with SEH as DeleteWindowsExitProc is causing an exception of its own under some teardown conditions. AT&T assembly syntax has not been added for MinGW yet. [Tcl Patch 858493] FossilOrigin-Name: e12249878fe2fa70e532f6629a899a96c165e3e3
* | * unix/tkUnixEvent.c (TkpCloseDisplay): Don'tmdejong2003-07-021-10/+40
|/ | | | | | | | | | | test for XCloseIM bug when the XFree86 version is newer than 4.0 since the layout of the XIM structure has changed. The check is not needed for newer XFree86 releases since the bug we are checking for was fixed in the 4.2.99.2 release. [Bug 755530] FossilOrigin-Name: 191a4162e95ef2f81d154849630a16b7adab2053
* unix/tkUnixEvent.c (OpenIM): Remove unused variablejenglish2003-01-101-3/+2
| | | | | | (Fixes: #664780 "SGI warning: OpenIM") FossilOrigin-Name: 0a0c9fffbc5d5688a9fb5d6e7556ef55eef2d3e2
* * unix/configure: Regen.mdejong2002-09-151-1/+18
| | | | | | | | | | | * unix/tcl.m4: Update from Tcl. * unix/tkUnixEvent.c (TkpCloseDisplay): Use PEEK_XCLOSEIM to examine the input context queue before invoking XCloseIM. Generate an assert if there is an input context that has not been freed. [Patch 570902] FossilOrigin-Name: 5b90814a1e529149663547788910e11a4e45da0a
* * generic/tkBind.c (TkBindDeadWindow):mdejong2002-06-191-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handle case where Tk_DestroyWindow is invoked on clipboard and send windows. * generic/tkClipboard.c (TkClipCleanup): Invoke Tk_DestroyWindow to cleanup the dispPtr->clipWindow. Call Tcl_Preserve and Tcl_Release on the window to avoid an invalid memory ref on shutdown. * generic/tkEvent.c (Tk_HandleEvent): Panic if XCreateIC is invoked twice for the same window. This should never happen, the check were just added to make sure it does not since this could lead to crashes in XCloseIM. * generic/tkFocus.c (TkFocusDeadWindow): Handle case where Tk_DestroyWindow is invoked on clipboard and send windows. * generic/tkOption.c (TkOptionDeadWindow): Ditto. * generic/tkWindow.c (TkCloseDisplay): Move deletion of dispPtr->winTable after TkpCloseDisplay call since Tk_DestroyWindow uses it and could be called by TkpCloseDisplay for clipboard/send windows. Also invoke ckfree for the dispPtr instead of doing it in TkpCloseDisplay. (Tk_DestroyWindow): Check for a null winPtr->mainPtr before doing certain cleanup tasks so the we can invoke Tk_DestroyWindow on clipboard and send windows. We need to do this so that XDestroyIC will get invoked for the input contexts of each window. * mac/tkMacXStubs.c (TkpCloseDisplay): Don't free the displayPtr since this is now done in TkCloseDisplay. * unix/tkUnixEvent.c (TkpCloseDisplay, OpenIM): Remove conditional compilation around calls to XCloseIM since I am confident that the crashes related to input contexts has been fixed. Don't free the displayPtr since this is now done in TkCloseDisplay. * unix/tkUnixSend.c (TkSendCleanup): Invoke the Tk_DestroyWindow method to cleanup the special send window. This will call XDestroyIC and thereby avoid a crash in XCloseIM. The send window needs to be Tcl_Preserve and Tcl_Release to avoid an invalid memory ref on shutdown. * win/tkWinX.c (TkpCloseDisplay): Don't free the displayPtr since this is now done in TkCloseDisplay. FossilOrigin-Name: 2b1442c6d82bdff73ad6575cabf7539bf0295292
* changed TK_USE_XIM_SPOT to TK_DISPLAY_XIM_SPOT for clarityhobbs2002-06-151-2/+2
| | | FossilOrigin-Name: fb49550f9a9154838aa2e800cf6aa4a94264d9c5
* * generic/tkEvent.c (Tk_HandleEvent):hobbs2002-06-151-6/+15
| | | | | | | | | | | * unix/tkUnixEvent.c (OpenIM): * unix/tkUnixKey.c (TkpGetString): * generic/tkInt.h: added TK_USE_XIM_SPOT flag bit for TkDisplay and used this to allow a runtime check to see if over-the-spot XIM is possible. If not it will try and fallback to the old-style input context, which handles things like dead keys input. FossilOrigin-Name: f90dbdf6569d10b781b5d6833561518c76a9f665
* * unix/tkUnixEvent.c (TkpCloseDisplay): call TkSendCleanup andhobbs2002-04-121-26/+25
| | | | | | TkWmCleanup. FossilOrigin-Name: 70e0be5940aaef495d1ff1f86360b8d049a7dc32
* * unix/tkUnixEvent.c:hobbs2002-04-051-2/+96
| | | | | | | | * generic/tkWindow.c: moved OpenIM over to tkUnixEvent.c. Removed setting inputContext to null in Tk_MakeWindowExist as it was redundant. FossilOrigin-Name: 7ef7ea811adfcf7cde60f5ac8926ea65bb9142ab
* * Updated callers of Tcl_SplitList and Tcl_Merge.dgp2002-01-251-2/+2
| | | | | | | | | | | * Updated callers of Tcl_GetStringResult. Rewrote PrintScrollFractions to ScrollFractions to stop scribbling directly on interp->result. * Updated callers of Tcl_GetVar, Tcl_GetVar2 * Updated callers of Tcl_SplitPath, Tcl_JoinPath, and Tcl_TranslateFileName. FossilOrigin-Name: 933dcfe881579bb3925ff2a05e925a0bd8d67087
* * Merged 8.1 branch into the main trunkstanton1999-04-161-45/+67
| | | FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741