summaryrefslogtreecommitdiffstats
path: root/xlib
Commit message (Collapse)AuthorAgeFilesLines
* Fix [420feb3850]: Aqua: UBSan warns for misaligned TkpGCCache access.jan.nijtmans2020-09-081-7/+11
| | | Just define the memory layout we want (XGCValuesWithCache) and let the compiler do the calculations.
* Remove all use of XImage.pixelpower, but not the field, simplify and reorganize.culler2020-08-221-1/+1
|
* Make TkpReleaseRegion and TkpRetainRegion static; remove mac-specific code ↵culler2020-08-191-12/+0
| | | | from xgc.c; remove call to XSetClipMask; add debug logging
* Add 3 more stub entries to MacOSX X11 stub table, which win32 already has: ↵jan.nijtmans2020-08-111-33/+349
| | | | XDestroyIC(), XCreatePixmapCursor(), XCreateGlyphCursor()
* Fix [34214bbdae]: typographical fixes in comments. Thanks to Christopher Chavez.fvogel2020-07-082-5/+5
|
* Don't use trans_chars array on MacOSX any more.jan.nijtmans2020-05-171-5/+0
|\
| * Merge 8.6marc_culler2020-05-151-5/+0
| |\ | |/ |/|
* | Fix [a953736b546ce681cbfc]: Potential wrong use of TkKeyEvent. Finally done ↵jan.nijtmans2020-05-151-0/+2
|/ | | | | | 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).
* Quick-fix for build problem on X11 (unfortunately, this means mis-using the ↵jan.nijtmans2020-05-131-17/+0
| | | | xbutton.button field again, don't have other quick solution for that)
* Add a separate flag for MouseWheel events (tkBind.c) and a new WheelEvent ↵fvogel2020-05-101-0/+17
| | | | event type to the XEvent union (Xlib.h). The new struct agrees with the KeyEvent except it replaces the unsigned int keycode with a signed int delta and drops the trans_chars and nbytes fields that come after the keycode in a KeyEvent. In addition to that, remove the NO_NUMBER hack and make the code clearer with respect to signed vs unsigned numbers. Thanks to Marc Culler for providing this patch.
* Fix [a953736b54]: Potential wrong use of TkKeyEventjan.nijtmans2019-11-251-1/+1
|\
| * Fix [a953736b54]: Potential wrong use of TkKeyEventjan.nijtmans2019-11-251-1/+1
| |
* | Add support for 4 keycodes on Windows (Mail, AudioMedia, Launch0 and ↵jan.nijtmans2019-11-135-0/+616
| | | | | | | | | | | | Launch1), which some keyboards might have. Add more header-files, with available keycodes on various platforms, and add some missing keysyms to ks_names.h (adapted from X11R6). This improves compatibility for Windows/MacOSX compared to X11R6.
* | Somewhat more progress on [a179564826]: Tk 8.6: prevent issues when ↵jan.nijtmans2019-11-011-3/+3
| | | | | | | | | | | | | | encountering non-BMP Unicode characters. Increase XMaxTransChars from 4 to 7, at the same time reducing the nbytes field from int to unsigned char. This makes more room to NULL-terminate the trans_chars array in the XEvent, even when it's 4 bytes in length. (fully binary compatible, since the nbytes field is not supposed to be accessed externally)
* | Fix 3 bugs in X11 keysym translations, originating from X11-r5 which were ↵jan.nijtmans2019-10-131-0/+2
| | | | | | | | fixed in X11-r6. Add 3 test-cases, proving each of them.
* | Make XID typedef unsigned, since it's unsigned as well on all other platforms.jan.nijtmans2019-10-101-1/+1
| | | | | | Extend maximum KeySym to allow up to 0x1008FFFF, since there are some MultiMedia keys allocated there.
* | Modify TkClipBox and friends such that they return an int (normally 0) in ↵jan.nijtmans2019-10-011-1/+2
| | | | | | | | stead of void. Reason: the X11 variant does this as well, this way we keep it the same on all platforms.
* | Don't use "class" as (internal) struct field name or local variable name. ↵jan.nijtmans2019-09-241-2/+2
| | | | | | | | Make it "c_class" (just as X11 does as well), in order to prevent conflict with C++ compilers.
* | Fix [f3c5467f07]: various spelling fixes (from Christopher Chavez)fvogel2019-07-021-2/+2
| |
| |
| \
*-. \ Merge 8.6 and all changes from original [bug-9e31fd9449] branchjan.nijtmans2019-01-084-22/+23
|\ \ \ | | |/
| | * Fix [9e31fd944934e269121fa78ff56b7b86f33e6db6|9e31fd9449]: X11/X.h and ↵jan.nijtmans2019-01-082-7/+16
| | |\ | | | | | | | | | | | | | | | | | | | | 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-033-15/+21
| | | | | | | | | | | | | | | | | | | | gradually slipped in. Wherever possible, pragma's are used in MSVC to silence useless compiler warnings.
* | | | Merge 8.5. Undo previous introduced ***POTENTIAL INCOMPATIBLITY*** on win32jan.nijtmans2018-12-261-6/+5
|\ \ \ \ | | |_|/ | |/| |
| * | | Change None/ControlMask on win32 (and MacOSX - which is harmless) to being ↵jan.nijtmans2018-12-261-6/+5
| | | | | | | | | | | | | | | | an enum. This fixes (hopefully) the ***POTENTIAL INCOMPATABILITY*** in previous commit
* | | | Fix [9e31fd9449]: X11/X.h and Windows.h have conflicting symbols jan.nijtmans2018-12-203-15/+19
|\ \ \ \ | |/ / / | | / / | |/ / |/| | *** 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-203-15/+19
| |/ | | | | | | | | Windows.h have conflicting symbols. Also fix a few newer (harmless) gcc warnings.
| * (cherry-pick): Fixed bug [f0188aca9e] (color names parsing on Windows), by ↵jan.nijtmans2017-04-131-0/+10
| | | | | | | | Simon Bachmann
| * Merged tip-464 following positive vote by the TCT.fvogel2017-03-261-0/+12
| |\
* | | TkPutImage should not assume that a pixmap is transparent, even though it ↵culler2018-11-101-4/+0
| | | | | | | | | | | | does have alpha=0.
* | | Make it possible to generate an NSImage with correct transparency from aculler2017-11-151-0/+4
| | | | | | | | | | | | photoimage. Fixes transparency issues with iconphotos and images in menus.
* | | various end-of-line spacesjan.nijtmans2017-05-011-2/+2
| | |
* | | Let the unimplemented function XDrawSegments() return BadDrawable in stead ↵jan.nijtmans2017-04-251-1/+1
| | | | | | | | | | | | of Success: It's only in the stub table since [a0883a07026127ef], before that the function was only internal and returned void.
* | | Fixed bug [f0188aca9e] (color names parsing on Windows)simonbachmann2017-04-081-0/+10
| |/ |/|
* | Proposed fix for [499526180d]: Add support for windows multimedia virtual ↵fvogel2017-01-281-0/+12
| | | | | | | | keys. Patch by ralfixx
* | Workaround for possible build problem on Windows/MacOSX: Some (older) ↵jan.nijtmans2016-11-091-0/+1
| | | | | | | | versions of X11/Xutil.h have a wrong signature for XOffsetRegion/XUnionRegion, so move them out of the way temporarly.
* | (micro-) optimize a few Win32 drawing functions, and make them work when ↵jan.nijtmans2016-11-081-6/+7
|\ \ | |/ | | | | npoints=0
| * Add XDrawSegments/XDrawPoint/XDrawPoints to internal stub table, and fix ↵jan.nijtmans2016-11-082-10/+14
| | | | | | | | their signature matching X11.
* | Add another few Xlib stubs for Win32. Cherry-picked from ↵jan.nijtmans2016-11-072-8/+11
| | | | | | | | [http://www.androwish.org/index.html/info/862eb620a096fddc|AndroWish]. Thanks to Christian Werner.
* | Fix for image/alpha rendering under hidpi/Retina displays on Mac OS; thanks ↵Kevin Walzer2016-07-151-0/+3
| | | | | | | | to Marc Culler for assistance
* | Force the use of the correct internal function for parsing hex colors rather ↵dkf2012-12-061-85/+63
|\ \ | |/ | | | | than leaving it to the vagaries of the system library (buggy on some versions of MinGW apparently).
| * Force the use of the correct internal function for parsing hex colors rather ↵dkf2012-12-061-85/+63
| |\ | | | | | | | | | than leaving it to the vagaries of the system library (buggy on some versions of MinGW apparently).
| | * Minor improvements now that we're no longer tracking a standard API.dkf2012-12-061-3/+2
| | |
| | * Force the use of the correct internal function for parsing hex colors ratherdkf2012-12-061-85/+64
| | | | | | | | | | | | than leaving it to the vagaries of the system library (buggy on some versions of MinGW apparently).
| | * More complete purge of things only present for supporting long-dead Mac 9 ↵dgp2012-11-156-35/+11
| | | | | | | | | | | | systems.
| * | sync nmakehlp.c with Tcl versionjan.nijtmans2012-10-236-95/+95
| |\ \ | | |/ | | | | | | <p>purge spaces at end of lines <p>clean-up unix/Makefile.in after carbon removal
* | | consistant use of mode: objc for OSX, strip spaces from the end of linesjan.nijtmans2012-10-236-95/+95
|\ \ \ | |/ /
| * | Add 8 colors to the supported color list (aqua, crimson, fuchsia, indigo, ↵jan.nijtmans2012-09-282-2/+28
| |\ \ | | |/ | | | | | | lime, olive, silver and teal), part of TIP #403
| | * Add 8 colors to the supported color list (aqua, crimson, fuchsia, indigo, ↵jan.nijtmans2012-09-282-2/+28
| | | | | | | | | | | | lime, olive, silver and teal), part of TIP #403
| * | Merge Tk-Cocoa backport into core-8-5-branchKevin Walzer2012-09-251-4/+34
| |\ \
| | * | review remarks, see mail.jan.nijtmans2012-09-121-2/+0
| | | |