summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWindowEvent.c
diff options
context:
space:
mode:
authorculler <culler>2018-11-03 20:48:20 (GMT)
committerculler <culler>2018-11-03 20:48:20 (GMT)
commit7ecb35e70563f3673d088c5df201b86b4974dd97 (patch)
treee0b449db9f1f8434f7a229c48a014b78c3285b44 /macosx/tkMacOSXWindowEvent.c
parenta51b941358414d42870614bacdbae8478fcd9f39 (diff)
downloadtk-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.c3
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];
}
}