summaryrefslogtreecommitdiffstats
path: root/generic/tkEvent.c
Commit message (Collapse)AuthorAgeFilesLines
* Code simplifications: Don't bother the typedefs 'EventMask' and 'ModMask' ↵jan.nijtmans2020-07-151-3/+3
| | | | for 'unsigned long', since Tk cannot handle more than 32 bits anyway. Simply use 'unsigned' everywhere.
* Fix [a953736b546ce681cbfc]: Potential wrong use of TkKeyEvent. Finally done ↵jan.nijtmans2020-05-151-1/+3
| | | | | | what's suggested there: Since kePtr->charValuePtr is only used on X11, only do the ckfree(kePtr->charValuePtr) on X11. On Win32, use TkKeyEvent in stead of the non-standard XEvent. On macOS TkKeyEvent is not used, so no change is needed (- MC).
* Make TkGenerateActivateEvents() available to Win32 and X11jan.nijtmans2020-03-291-0/+41
|
* Merge 8.5jan.nijtmans2020-02-031-17/+4
|\
| * Put realEventMasks and virtualEventMasks together in a single table: ↵jan.nijtmans2020-02-031-17/+4
| | | | | | | | VirtualEvent = MappingNotify + 1, so it's fixed anyway. Other places in Tk code already depend on that, so we can here.
* | Merge TIP #532 implementation now that [c1c842ef7792] (new tkBind.c: wrong ↵fvogel2019-08-281-66/+0
|\ \ | | | | | | | | | assumption about ButtonRelease to match Button presses) is fixed.
| * \ Merge 8.6jan.nijtmans2019-08-131-2/+2
| |\ \
| * \ \ Merge 8.6, and remove unused static function definitionjan.nijtmans2019-08-021-1/+0
| |\ \ \
| * \ \ \ Merge 8.6 (and fix merge conflict arising from that)jan.nijtmans2019-08-011-18/+9
| |\ \ \ \ | | |/ / /
| * | | | Remove the crazy function UpdateButtonEventState which was causing all this ↵culler2019-08-011-67/+0
| | | | | | | | | | | | | | | | | | | | trouble.
* | | | | Fix [5da1d76e01]: X11: add default bindings for non-emulated horizontal ↵jan.nijtmans2019-08-221-0/+8
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | scrolling to Tk 8.6
| * | | | Improve implementation in tkEvent.c. jan.nijtmans2019-08-211-10/+9
| |\ \ \ \ | |/ / / / |/| | | | Merge 8.6
| * | | | Much simpler (still Experimental) implementation of RFE-5da1d76e01. Just ↵jan.nijtmans2019-08-191-1/+10
|/ / / / | | | | | | | | | | | | translate 6/7 to Shift-4/5
* | | | A few more places where "unsigned long" should have been used.jan.nijtmans2019-08-131-1/+1
| | | |
* | | | Use "unsigned long" as type for "mask" variables containing X11 button-masks ↵jan.nijtmans2019-08-131-1/+1
| |/ / |/| | | | | | | | consistantly. Code cleanup.
* | | New intermal macro ALL_BUTTONS and function TkGetButtonMask(), which can be ↵jan.nijtmans2019-07-231-23/+12
| | | | | | | | | | | | re-used in various places in stead of separate functions.
* | | Don't use "struct ThreadSpecificData", while the type name ↵jan.nijtmans2019-07-021-1/+1
|/ / | | | | | | "ThreadSpecificData" is already sufficient.
| |
| \
*-. \ Merge 8.6 and all changes from original [bug-9e31fd9449] branchjan.nijtmans2019-01-081-2/+2
|\ \ \ | | |/
| | * Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2019-01-081-2/+2
| | |\ | | | | | | | | | | | | | | | | | | | | Windows.h have conflicting symbols. *** POTENTIAL INCOMPATIBILITY *** on Windows only: gcc/clang/MSVC will generate new warnings in extensions when the "None" symbol is used incorrectly. Those warnings are all fixed in the core, that's what most of this commit is doing.
| | | * Bring back more original "None" usages, and fix other warnings which ↵jan.nijtmans2019-01-031-1/+1
| | | | | | | | | | | | | | | | | | | | gradually slipped in. Wherever possible, pragma's are used in MSVC to silence useless compiler warnings.
* | | | As requested by Christian Werner/François Vogel and others: Undo many None ↵jan.nijtmans2018-12-311-8/+8
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | -> 0 changes, in order to reduce the probability of merge conflicts with other branches. Remark: Many usages of "None" in Tk are wrong, "NULL" should be used in many places where pointers are referenced in stead of XID's. Those places are corrected.
| * | | As requested by Christian Werner/François Vogel and others: Undo many None ↵jan.nijtmans2018-12-311-8/+8
| | | | | | | | | | | | | | | | | | | | -> 0 changes, in order to reduce the probability of merge conflicts with other branches. Remark: Many usages of "None" in Tk are wrong, "NULL" should be used in many places where pointers are referenced in stead of XID's. Those places are corrected.
* | | | Fix [9e31fd9449]: X11/X.h and Windows.h have conflicting symbols jan.nijtmans2018-12-201-9/+9
|\ \ \ \ | |/ / / | | / / | |/ / |/| | *** POTENTIAL INCOMPATIBILITY *** for Win32 only: On X11 and Mac, "None" can still be used as before
| * | Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2018-12-201-9/+9
| |/ | | | | | | | | Windows.h have conflicting symbols. Also fix a few newer (harmless) gcc warnings.
| * (cherry-pick): Fix crash in TkFinalize() if Tk_Init() is never called. ↵jan.nijtmans2016-02-111-0/+6
| | | | | | | | Suggested by Brian Griffin.
| * Remove useless (void *) casts introduced in checkin [b7a58eae61]. The ↵stwo2012-08-091-3/+3
| | | | | | | | warnings were false flags from a faulty OpenBSD C compiler.
* | Proposed fix for [7d967c68a09e07e355358af40f36dd5dd84c7022|7d967c68]: Tk ↵jan.nijtmans2016-12-151-1/+12
| | | | | | | | applications segmentation fault when ibus-daemon IME is restarted
* | Fix crash in TkFinalize() if Tk_Init() is never called. Suggested by Brian ↵jan.nijtmans2016-02-111-0/+6
| | | | | | | | Griffin.
* | Remove unnecessary end-of-line spacingjan.nijtmans2014-11-211-1/+1
| |
* | typojan.nijtmans2013-11-201-1/+1
| |
* | Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper jenglish2013-02-271-1/+1
| | | | | | exists and is used.
* | Eliminate all Tcl_GetIndexFromObj calls, which is only a thin wrapper around ↵jan.nijtmans2013-02-271-1/+1
| | | | | | | | Tcl_GetIndexFromObjStruct.
* | merge trunkdkf2012-08-141-3/+3
|\ \
| * | Remove useless (void *) casts introduced in checkin [81e50c85ed]. The ↵stwo2012-08-091-3/+3
| | | | | | | | | | | | warnings were false flags from a faulty OpenBSD C compiler.
* | | minor improvements to flag handlingdkf2012-07-311-1/+1
|/ /
* | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ | |/
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * 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.
| | * * generic/tkEvent.c: fix handling of ClientMessage handlers.hobbs2005-11-301-4/+4
| | | | | | | | | | | | [Bug 1289565 983920]
| | * * generic/tkEvent.c (Tk_HandleEvent): Call XSetICFocus wheneverrmax2004-10-261-1/+12
| | | | | | | | | | | | | | | the window receives focus. This fixes bug #905830 but avoids #1000051.
| | * * 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.
| | * Don't queue events for unmapped children.wolfsuit2004-07-211-1/+5
| | |
| | * * generic/tkEvent.c (Tk_HandleEvent): ensure IC focus is set afterhobbs2004-07-211-1/+11
| | | | | | | | | | | | creation. [Bug #905830]
| | * 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.
| | * * generic/tkEvent.c (Tk_HandleEvent): correct XCreateIC call forhobbs2003-07-191-3/+12
| | | | | | | | | | | | TK_XIM_SPOT usage. [Bug 742660] (takahashi)
| * | Cast some NULLs to (void *) in order to quash "missing sentinel in function ↵stwo2011-01-061-4/+4
| | | | | | | | | | | | call" compiler warnings.
| * | Fix [Bug 1373712] and [Bug 1924761].dkf2010-01-021-15/+59
| | |
| * | [Bug 1924761]: Consolidate calls to XFilterEvent to make input methods work.dkf2010-01-011-60/+18
| | |
| * | * generic/tkEvent.c: Backport a fix from 8.6 for a NULL pointergeorgeps2009-01-111-1/+7
| | | | | | | | | | | | dereference in CreateXIC.