diff options
author | culler <culler> | 2018-11-03 20:48:20 (GMT) |
---|---|---|
committer | culler <culler> | 2018-11-03 20:48:20 (GMT) |
commit | 7ecb35e70563f3673d088c5df201b86b4974dd97 (patch) | |
tree | e0b449db9f1f8434f7a229c48a014b78c3285b44 /macosx/tkMacOSXWindowEvent.c | |
parent | a51b941358414d42870614bacdbae8478fcd9f39 (diff) | |
download | tk-7ecb35e70563f3673d088c5df201b86b4974dd97.zip tk-7ecb35e70563f3673d088c5df201b86b4974dd97.tar.gz tk-7ecb35e70563f3673d088c5df201b86b4974dd97.tar.bz2 |
Cleaned up the Rube Goldberg logic of TkMacOSXSetupDrawingContext and TkMacOSXRestoreDrawingContext. Eliminated all dependencies on functions deprecated in Mojave except scrollRect:by.
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index 3e22311..8d04564 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -863,7 +863,6 @@ ConfigureRestrictProc( #ifdef TK_MAC_DEBUG_DRAWING fprintf(stderr, "drawRect: done.\n"); #endif - } -(void) setFrameSize: (NSSize)newsize @@ -873,6 +872,7 @@ ConfigureRestrictProc( TkWindow *winPtr = TkMacOSXGetTkWindow(w); Tk_Window tkwin = (Tk_Window) winPtr; if (winPtr) { + [NSApp setIsDrawing:YES]; unsigned int width = (unsigned int)newsize.width; unsigned int height=(unsigned int)newsize.height; ClientData oldArg; @@ -918,6 +918,7 @@ ConfigureRestrictProc( [self generateExposeEvents: shape]; [w displayIfNeeded]; [NSApp _unlockAutoreleasePool]; + [NSApp setIsDrawing:NO]; } } |