summaryrefslogtreecommitdiffstats
path: root/generic/tkEvent.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix crash in TkFinalize() if Tk_Init() is never called. Suggested by Brian ↵jan.nijtmans2016-02-111-0/+6
| | | | | Griffin. FossilOrigin-Name: ab7f10ab98b44ec79c22931b6e31e95786fa4165
* Remove unnecessary end-of-line spacingjan.nijtmans2014-11-211-1/+1
| | | FossilOrigin-Name: a79b0b9416381ec4df6f4e2247d96ae09361ec68
* typojan.nijtmans2013-11-201-1/+1
| | | FossilOrigin-Name: e4eb7f30dc85cad90062ceb46420276be0df4025
* Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper jenglish2013-02-271-1/+1
| | | | | exists and is used. FossilOrigin-Name: 6c26562fe3f83eea390818ed36601930e1cbe0d9
* Eliminate all Tcl_GetIndexFromObj calls, which is only a thin wrapper around ↵jan.nijtmans2013-02-271-1/+1
| | | | | Tcl_GetIndexFromObjStruct. FossilOrigin-Name: ac229dabaa17d676525667523b87cdab837c473d
* merge trunkdkf2012-08-141-3/+3
|\ | | | | FossilOrigin-Name: 2b25ed86782976a3951de56f6251fe323cd27f74
| * Remove useless (void *) casts introduced in checkin [81e50c85ed]. The ↵stwo2012-08-091-3/+3
| | | | | | | | | | warnings were false flags from a faulty OpenBSD C compiler. FossilOrigin-Name: 15218b051c550638fb61dda3e86feb034c140f6f
* | minor improvements to flag handlingdkf2012-07-311-1/+1
|/ | | FossilOrigin-Name: 9507ac2ceef0b18eaa4733203d2e48e14f641631
* 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
| | * XIM fixes [See #905830, patch tk84-xim-fixes.patch]:jenglish2006-01-201-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | + 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
| | * * generic/tkEvent.c: fix handling of ClientMessage handlers.hobbs2005-11-301-4/+4
| | | | | | | | | | | | | | | | | | [Bug 1289565 983920] FossilOrigin-Name: e1e6132205c269042fd672b797ce131b70f29980
| | * * generic/tkEvent.c (Tk_HandleEvent): Call XSetICFocus wheneverrmax2004-10-261-1/+12
| | | | | | | | | | | | | | | | | | | | | the window receives focus. This fixes bug #905830 but avoids #1000051. FossilOrigin-Name: 69217bd0f40b771c697ee34cf62703c4381e0b64
| | * * changes:dgp2004-07-291-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tkEvent.c (Tk_HandleEvent): revert the 2004-07-20 commit. That commit created a new Bug 1000051 - a broken Compose Key. This revert restores Bug 905830 until a cleaner fix can be provided. FossilOrigin-Name: 5a82fae90cdd6e6fef56650ac74c731e0dab565d
| | * Don't queue events for unmapped children.wolfsuit2004-07-211-1/+5
| | | | | | | | | FossilOrigin-Name: a67df2642d96c4ccd5d7304ae38ea0d1f7344169
| | * * generic/tkEvent.c (Tk_HandleEvent): ensure IC focus is set afterhobbs2004-07-211-1/+11
| | | | | | | | | | | | | | | | | | creation. [Bug #905830] FossilOrigin-Name: 8461c26c45b8b79ebf8d830191bfe01cc376f838
| | * This gets the scroll wheel working for listboxes and text widgets for Mac OSwolfsuit2004-02-161-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | X. It also changes the model to route scrollwheel events to the window under the pointer, not the focus window on X (and only on X). That is the correct behavior for Mac OS X. FossilOrigin-Name: 0b99b409b4ea86f14f5e3377309ac939f3ba6464
| | * * generic/tkEvent.c (Tk_HandleEvent): correct XCreateIC call forhobbs2003-07-191-3/+12
| | | | | | | | | | | | | | | | | | TK_XIM_SPOT usage. [Bug 742660] (takahashi) FossilOrigin-Name: 20d941ad9cb0fb4ce00536187c90a6b687c70e68
| * | Cast some NULLs to (void *) in order to quash "missing sentinel in function ↵stwo2011-01-061-4/+4
| | | | | | | | | | | | | | | call" compiler warnings. FossilOrigin-Name: b7a58eae613a06ad7ad9e2cf2aa3a294804fc3b8
| * | Fix [Bug 1373712] and [Bug 1924761].dkf2010-01-021-15/+59
| | | | | | | | | FossilOrigin-Name: 0910f89f2a66f1b59e61622af3ad8583afd1bcce
| * | [Bug 1924761]: Consolidate calls to XFilterEvent to make input methods work.dkf2010-01-011-60/+18
| | | | | | | | | FossilOrigin-Name: 81fa441963865bfb33b47c83574f2b6fca9300f7
| * | * generic/tkEvent.c: Backport a fix from 8.6 for a NULL pointergeorgeps2009-01-111-1/+7
| | | | | | | | | | | | | | | | | | dereference in CreateXIC. FossilOrigin-Name: d0b235e4975598da396e2a4d54220b25def1eee2
| * | Fix for [Bug 2010422] "no event type or button # or keysymjenglish2008-08-051-5/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | while executing "bind Listbox <MouseWheel> [...]". This allows Tk to compile and run against newer X11 headers where the protocol constant LastEvent has changed. FossilOrigin-Name: a4e64793ea2703870c5f9b6367fcd21c2a237b81
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-17/+16
| | | | | | | | | | | | | | | using useful casts internally. FossilOrigin-Name: 142e016e7b17277d81257da90477297eb9aaa05a
* | | Cast some NULLs to (void *) in order to quash "missing sentinel in function ↵stwo2011-01-061-4/+4
| | | | | | | | | | | | | | | call" compiler warnings. FossilOrigin-Name: 81e50c85ed139b258d9edf452eaa784fb70dd374
* | | use -pipe for gcc on win32 (mingw/cygwin)nijtmans2010-02-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | make sure that TkpCmapStressed is exported clean up unused Tk_CreatePhotoOption Make more internal arrays "const" FossilOrigin-Name: 9cc7f1a2331c199de4eed2503923906f3935f0a7
* | | SMALL FIX: Remove useless explicit casts now that we require C89 or later.dkf2010-01-021-20/+19
| | | | | | | | | FossilOrigin-Name: 270544288f23a8c9f860bd4744422c376ee4b471
* | | Fix [Bug 1373712] and [Bug 1924761].dkf2010-01-021-15/+59
| | | | | | | | | FossilOrigin-Name: a5ab1bd805d9055802e3b0a110c7dbc80231f8b3
* | | [Bug 1924761]: Consolidate calls to XFilterEvent to make input methods work.dkf2010-01-011-66/+24
| | | | | | | | | FossilOrigin-Name: 245ce503fd6df59b539eb448593e7afa6552dc9a
* | | * generic/tkEvent.c: Fix a possible segv due to a NULLgeorgeps2009-01-111-1/+7
| | | | | | | | | | | | | | | | | | pointer dereference that occurs when XCreateIC fails. FossilOrigin-Name: 78d05cc9dd3a6c1d70c80cd4bc8d11b6eda00c16
* | | TIP#171 implementation - sanity for <MouseWheel> event handling!dkf2008-12-281-9/+3
| | | | | | | | | FossilOrigin-Name: da1b92466b00755b637abcefff167817f0240a69
* | | Lots of small changes to make code more pretty and C89-like.dkf2008-11-081-6/+6
| | | | | | | | | FossilOrigin-Name: 782ccc1d4281d79d7cd4e7db9add4b5aceba18fe
* | | Fix for [Bug 2010422] "no event type or button # or keysymjenglish2008-08-051-5/+24
|/ / | | | | | | | | | | | | | | | | while executing "bind Listbox <MouseWheel> [...]". This allows Tk to compile and run against newer versions of libX11 where the protocol constant LastEvent has changed. FossilOrigin-Name: f2b70826ca14875435ac6c59b811665ed10e3c5f
* | XIM reorganization and cleanup; see [Patch 1919791] for details.jenglish2008-03-261-81/+47
| | | | | | FossilOrigin-Name: 8f1f01a39fbd09f4c0efc8e871b350f98d269e6c
* | * library/ttk/altTheme.tcl, library/ttk/clamTheme.tcl,jenglish2006-11-241-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | library/ttk/defaults.tcl, library/ttk/winTheme.tcl, library/ttk/xpTheme.tcl: explicitly specify -anchor w on TMenubutton * tests/ttk/entry.test: Fixed font dependency; test entry-3.2 should work on all platforms now. * library/classicTheme.tcl: Don't define or use TkClassicDefaultFont. * generic/ttk/ttkTreeview.c, generic/ttk/ttkPanedwindow.c: Handle missing layouts. FossilOrigin-Name: bcec0a6d03c28d1231062507218dbf8cf5d15de1
* | Comment formattingdkf2006-02-031-16/+21
| | | | | | FossilOrigin-Name: 7f87d18375dad64bef5d4d5c984f6e99cd9ad858
* | XIM fixes [See #905830, patch tk84-xim-fixes.patch].jenglish2006-01-201-3/+5
| | | | | | | | | | | | | | | | + 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
* | ANSIfydkf2005-11-041-4/+4
| | | | | | FossilOrigin-Name: 8a0af44fee6b040a802a4c2b907ca9c0438fac28
* | * unix/tkUnixPort.h: Disabled inclusion of the private Tcl headerdgp2005-09-281-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | * win/tkWinPort.h: file tclInt.h. Tk ought to have a tiny and shrinking number of calls of private Tcl routines. Each Tk source file doing this should follow the convention in the macosx port and have its own #include "tclInt.h". * generic/tkEvent.c: Disabled calls to private Tcl routine TclInExit(). See comment in TkCreateExitHandler() for full rationale. FossilOrigin-Name: ece0f116a322024186eeb8ecb9835497b977ce3f
* | Tk-internal exit handler improvements. [Bug 749908]dkf2005-09-211-613/+725
| | | | | | FossilOrigin-Name: 73102fdf2a3f56d3dea3151fcd5945b718f13ef0
* | On Mac OS X scrollwheel events are sent to the window under the mouse, notwolfsuit2005-06-031-3/+8
| | | | | | | | | | | | to the focus window. FossilOrigin-Name: 73cfb2c8e64d8e4478fdd08c2f2f10042cc11943
* | Correct the InvokeClientMessageHandlers logic. [Bug 1162356]dkf2005-03-141-220/+235
| | | | | | | | | | | | Also many style fixups to approach the Engineering Manual. FossilOrigin-Name: 87ca0f62b2dd498cba3f92d1446885583a414f96
* | * generic/tkEvent.c (InvokeInputMethods): Call XSetICFocusrmax2004-11-111-10/+16
| | | | | | | | | | | | | | whenever the window receives focus. This fixes bug #905830 but avoids #1000051. FossilOrigin-Name: b769b452315fdaad2360d680625829c73a16b534
* | TIP#165 (user data field) implementation.dkf2004-08-291-18/+35
| | | | | | FossilOrigin-Name: 86e0e80ee6a1953aa619d97c3013f59e685615f8
* | Applied a fix from the core-8-4-branch so that unmapped windows don't queue ↵georgeps2004-07-291-1/+5
| | | | | | | | | | events. FossilOrigin-Name: 92b9ba26810daf1051a2ec1bed92428667e65c7a
* | * generic/tkEvent.c (InvokeInputMethods): ensure IC focus is sethobbs2004-07-211-1/+11
| | | | | | | | | | | | after creation. [Bug #905830] FossilOrigin-Name: 7e7d9ca9bb994330b3c3aacc84f4afbc46ef3feb
* | The usage of the TK_XIM_SPOT definition was causing a build failure with ↵georgeps2004-07-051-5/+5
| | | | | | | | | | some systems. I changed the function prototype and the CreateXIMSpot block to work correctly. FossilOrigin-Name: 9d3eb922957e2959a5e7869953f3012d8558418c
* | tkEvent.c was refactored to be cleaner and fix two bugs. Two bugs were ↵georgeps2004-07-021-315/+650
| | | | | | | | | | found and fixed. Button mask 4 and 5 synchronizing with the TkDisplay and ClientMessage handlers conflicting with the GenericHandler list. FossilOrigin-Name: 1554859f69e4498333f35d5abf250180601aaf08
* | * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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