summaryrefslogtreecommitdiffstats
path: root/generic/tkGrab.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.6jan.nijtmans2020-09-151-2/+1
|\
| * More usage of TCL_UNUSED() and explicit type-castsjan.nijtmans2020-09-151-20/+19
| |
* | New TIP #580 implementation. Documentation still missing.jan.nijtmans2020-07-141-3/+3
| |
* | Fix [e3888d5820]: Grab on master prevents mouse pointer warp into slave ↵fvogel2020-07-061-0/+25
|\ \ | | | | | | | | | widget. Mouse pointer warping happens synchronously.
| * | Remove excess spacing.fvogel2020-06-031-1/+1
| | |
| * | Rename DoWarpWrtWin --> TkDoWarpWrtWinfvogel2020-06-021-2/+2
| | |
| * | Remove function DoWarpWrtScreen which was called from only one place, and ↵fvogel2020-06-021-0/+20
| | | | | | | | | | | | add comments.
| * | Rename DoWarp to DoWarWrtScreen, add function DoWarpWrtWin to factorize the ↵fvogel2020-06-021-30/+2
| | | | | | | | | | | | code a bit.
| * | Remove the TK_DISPLAY_IN_WARP machinery completely.fvogel2020-06-021-10/+6
| | |
| * | A more robust approach to warping with respect to a window: make the call to ↵fvogel2020-06-021-0/+37
| |/ | | | | | | TkpWarpPointer happen in TkPointerEvent instead of as an idle event. This allows to remove some update/after commands in tests since warping with respect to a window is now synchronous (it happens before event generate $win <Motion> -warp 1 ... returns).
* | TIP 569 remove lint commentsdgp2020-03-181-1/+0
| |
* | Much more WIP: Appears to be working on UNIX, and for a bit part on Windows too.jan.nijtmans2019-12-201-17/+18
| |
* | Follow-up to [38dc27bd1d0ecd682aafde]: Tk does not support <Button-6> nor ↵jan.nijtmans2019-07-301-1/+1
| | | | | | | | | | | | <Button-7> events. This commit adds hardware-support for buttons 6-9 on MacOSX, and handles masking correct for all buttons 6-9. Not complete yet, but this is as far as we can go without needing a TIP.
* | Merge 8.6jan.nijtmans2019-07-231-12/+1
|\ \ | |/
| * New intermal macro ALL_BUTTONS and function TkGetButtonMask(), which can be ↵jan.nijtmans2019-07-231-12/+1
| | | | | | | | re-used in various places in stead of separate functions.
* | Merge 8.6jan.nijtmans2019-06-241-1/+1
|\ \ | |/
| * Tk_DoOneEvent -> Tcl_DoOneEvent, since the Tk variant is deprecated. See: ↵jan.nijtmans2019-06-241-1/+1
| | | | | | | | [505fe5a0e2]
* | Fix [75b8fbfd77]: Segfault with [event generate] sequence outside grabbed windowfvogel2019-06-151-2/+3
|\ \ | |/
| * Change the fix (see details in ticket [75b8fbfd77])fvogel2019-06-091-1/+1
| |
| * Fix [75b8fbfd77]: Segfault with [event generate] sequence outside grabbed windowfvogel2019-06-091-2/+3
| |
* | Change size_t usages to (internal type) TkSizeT usages, which is "int" when ↵jan.nijtmans2019-04-041-1/+1
| | | | | | | | compiling against 8.x headers.
* | Implement local grabs on macOS.culler2019-01-091-6/+1
|\ \ | |/
| * Implement local grabs for Aqua.culler2019-01-051-6/+1
| |
* | More preparation for TIP #494 compatibitly. Add 2 utility functions, which ↵jan.nijtmans2018-08-111-2/+2
|/ | | | can retreive big strings and ByteArrays without length overflow.
* Eliminate all usage of __WIN32__ macro: Some compilers (e.g. Clang/LLVM) ↵jan.nijtmans2014-02-101-2/+2
| | | | | don't define it, and _WIN32 is much more portable anyway. See: [http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system#WindowsCygwinnonPOSIXandMinGW]
* Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper jenglish2013-02-271-6/+6
| | | exists and is used.
* Eliminate all Tcl_GetIndexFromObj calls, which is only a thin wrapper around ↵jan.nijtmans2013-02-271-6/+6
| | | | Tcl_GetIndexFromObjStruct.
* minor improvements to flag handlingdkf2012-07-311-2/+2
|
* Working towards making the error codes more consistent.dkf2012-07-301-1/+1
|
* Much more cleaning up of result handling.dkf2012-07-231-18/+29
|
* Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-25/+27
| | | ** WORK IN PROGRESS **
* implement TkSetPixmapColormap and TkpPrintWindowId for cygwinjan.nijtmans2012-05-161-1/+3
|\ | | | | cleanup some more unused CYGWIN stuff
| * implement TkSetPixmapColormap and TkpPrintWindowId for cygwinjan.nijtmans2012-05-161-1/+3
| |\
* | \ Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-2/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-1/+1
| | | | | | | | | using useful casts internally.
* | | Consistent use of variable names in RestrictEventnijtmans2010-05-111-6/+6
| | | | | | | | | | | | | | | | | | API documentation and implementation: Use 'prev' in stead of 'old', and 'arg' in stead of 'clientData' everywhere, just as in tkEvent.c.
* | | use -pipe for gcc on win32 (mingw/cygwin)nijtmans2010-02-131-2/+2
| | | | | | | | | | | | | | | | | | make sure that TkpCmapStressed is exported clean up unused Tk_CreatePhotoOption Make more internal arrays "const"
* | | Merge of TkAqua Cocoa portmacosx_cocoa_mergedas2009-06-291-2/+7
| | |
* | | - eliminate some unnessary type castsnijtmans2009-02-031-2/+2
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | [Bug 1389270] event generate silently ignored focus events. These can now be ↵patthoyts2008-11-231-4/+4
| | | | | | | | | | | | generated.
* | | Add "const" to many internalnijtmans2008-10-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.
* | | fix [2021443] inconsistant "wrong # args" messages (for Tk)nijtmans2008-07-231-4/+4
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-15/+14
|/ /
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | header cleanupdgp2007-09-071-2/+1
| |
* | ANSIfydkf2005-11-141-490/+470
| |
* | Removed support for Mac OS Classic platform [Patch 918139]das2004-03-171-2/+2
|/
* *** macosx-8-4-branch merged into the mainline [tcl patch #602770] ***macosx_8_4_merge_2002_08_31_trunkdas2002-08-311-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tk.decls: * generic/tkInt.decls: added new "aqua" specific entries to the stubs tables. Changed all "unix" entries to "x11" to allow us to distinguish and build both "aqua" on MacOSX and "x11" on MacOSX. * generic/tk.h: added a #ifnded RESOURCE_INCLUDED so that tk.h can be passed to the resource compiler. * generic/tkCmds.c (Tk_TkObjCmd): added [tk windowingsystem] subcommand: returns "x11" when running on X11, "win32" on Windows, "classic" on MacOS9 and "aqua" on MacOSX Aqua (i.e. Carbon) * generic/tkFont.c (TkFontGetFirstTextLayout): new private function returning the first chunk of a Tk_TextLayout, i.e. until the first font change on the first line (or the whole first line if there is no such font change). * generic/tkMain.c: made Tcl_ThreadDataKey static * library/demos/puzzle.tcl: fixed button metrics for aqua * tests/cursor.test: check for presence of arrow cursor instead of heart cursor * xlib/xcolors.c: changed xColors static initialization to more standard C * macosx/Wish.pbproj/jingham.pbxuser (new): * macosx/Wish.pbproj/project.pbxproj (new): project for Apple's ProjectBuilder IDE. * macosx/Makefile (new): simple makefile for building the project from the command line via the ProjectBuilder tool 'pbxbuild'. * macosx/tkMacOSXAppInit.c (new): macosx specific AppInit looking for a AppMain.tcl file in its bundled Resources/Scripts folder. If present, argv[1] is set to that file and the Scripts folder is added to the auto_path. This allows tk apps to embed scripts within their bundle directory structure. * macosx/tkMacOSXInit.c (new): macosx adapted version of tkUnixInit.c: we initialize & cache the Carbon native encoding (e.g. 'macRoman') and try to find the tk script library files inside Tk packaged as a framework. * macosx/tkMacOSXNotify.c (new): new macosx specific merged Carbon/select-based notifier. * macosx/tkMacOSXEvent.c (new): * macosx/tkMacOSXEvent.h (new): * macosx/tkMacOSXKeyEvent.c (new): * macosx/tkMacOSXMouseEvent.c (new): * macosx/tkMacOSXWindowEvent.c (new): new macosx specific event handling functionality. * macosx/tkMacOSX.h (new): * macosx/tkMacOSXBitmap.c (new): * macosx/tkMacOSXButton.c (new): * macosx/tkMacOSXClipboard.c (new): * macosx/tkMacOSXColor.c (new): * macosx/tkMacOSXConfig.c (new): * macosx/tkMacOSXCursor.c (new): * macosx/tkMacOSXDefault.h (new): * macosx/tkMacOSXDialog.c (new): * macosx/tkMacOSXDraw.c (new): * macosx/tkMacOSXEmbed.c (new): * macosx/tkMacOSXFont.c (new): * macosx/tkMacOSXHLEvents.c (new): * macosx/tkMacOSXInt.h (new): * macosx/tkMacOSXKeyboard.c (new): * macosx/tkMacOSXMenu.c (new): * macosx/tkMacOSXMenubutton.c (new): * macosx/tkMacOSXMenus.c (new): * macosx/tkMacOSXPort.h (new): * macosx/tkMacOSXRegion.c (new): * macosx/tkMacOSXScale.c (new): * macosx/tkMacOSXScrlbr.c (new): * macosx/tkMacOSXSubwindows.c (new): * macosx/tkMacOSXTest.c (new): * macosx/tkMacOSXUtil.c (new): * macosx/tkMacOSXUtil.h (new): * macosx/tkMacOSXWm.c (new): * macosx/tkMacOSXWm.h (new): * macosx/tkMacOSXXStubs.c (new): macosx ports of classic mac Tk implementation in tk/mac. * macosx/tkMacOSXSend.c (new): only send to local interp implemented currently. * macosx/tkMacOSXDebug.h (new): * macosx/tkMacOSXDebug.c (new): new macosx specific functions for debugging MacOS events, regions, etc. * macosx/tkAboutDlg.r (new): * macosx/tkMacOSXApplication.r (new): * macosx/tkMacOSXCursors.r (new): * macosx/tkMacOSXLibrary.r (new): * macosx/tkMacOSXMenu.r (new): * macosx/tkMacOSXResource.r (new): * macosx/tkMacOSXXCursors.r (new): * macosx/tclets.r (new): sources for Rez resource compiler. * macosx/Wish.icns (new): Wish application icon. * generic/tk.h: * generic/default.h: * generic/tkBind.c: * generic/tkCmds.c: * generic/tkGrab.c: * generic/tkPointer.c: * generic/tkPort.h: * generic/tkSelect.c: * generic/tkStubLib.c: * generic/tkTest.c: * generic/tkText.c: * generic/tkWindow.c: * unix/tkUnix3d.c: * xlib/xgc.c: * xlib/X11/X.h: * xlib/X11/Xlib.h: * xlib/X11/Xutil.h: added #includes and #ifdefs for macosx * library/bgerror.tcl: * library/button.tcl: * library/console.tcl: * library/dialog.tcl: * library/entry.tcl: * library/listbox.tcl: * library/menu.tcl: * library/msgbox.tcl: * library/scrlbar.tcl: * library/spinbox.tcl: * library/text.tcl: * library/tk.tcl: * library/demos/menu.tcl: * library/demos/menubu.tcl: * library/demos/widget: check [tk windowingsystem] instead of and/or in addition to $tcl_platform(platform). * generic/tkInt.h: * mac/tkMacBitmap.c: * mac/tkMacWm.c: added missing CONSTification * generic/tkIntDecls.h: * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h: * generic/tkPlatDecls.h: * generic/tkStubInit.c: regen