diff options
author | Kevin Walzer <kw@codebykevin.com> | 2017-10-11 00:44:12 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2017-10-11 00:44:12 (GMT) |
commit | 0e8376bacdeb2bfe083cb4836c52c1c95a16a105 (patch) | |
tree | 6280bfab8db4927611c8142d2b688c7c39eae1a9 /macosx/tkMacOSXXStubs.c | |
parent | ec1a48e95670f0cfd0b32e37a1e01be9931d334f (diff) | |
download | tk-0e8376bacdeb2bfe083cb4836c52c1c95a16a105.zip tk-0e8376bacdeb2bfe083cb4836c52c1c95a16a105.tar.gz tk-0e8376bacdeb2bfe083cb4836c52c1c95a16a105.tar.bz2 |
Numerous fixes for Tk on macOS 10.13; eliminate memory leaks, override system fullscreen API that confuses window geometry, improve implementation of Tk fullscreen API. Thanks to Marc Culler for patches to address memory leaks.
Diffstat (limited to 'macosx/tkMacOSXXStubs.c')
-rw-r--r-- | macosx/tkMacOSXXStubs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/macosx/tkMacOSXXStubs.c b/macosx/tkMacOSXXStubs.c index 1c2d908..00940b5 100644 --- a/macosx/tkMacOSXXStubs.c +++ b/macosx/tkMacOSXXStubs.c @@ -890,7 +890,6 @@ XGetImage( int bitmap_pad = 0; int bytes_per_row = 4*width; int size; - MacDrawable *macDraw = (MacDrawable *) d; // Where is this variable used? May it be removed? int scalefactor = 1; #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 NSWindow *win = TkMacOSXDrawableWindow(d); @@ -1369,7 +1368,7 @@ void Tk_ResetUserInactiveTime( Display *dpy) { - IOGPoint loc; + IOGPoint loc = {0, 0}; kern_return_t kr; NXEvent nullEvent = {NX_NULLEVENT, {0, 0}, 0, -1, 0}; enum { kNULLEventPostThrottle = 10 }; |