diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-02-18 03:32:48 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-02-18 03:32:48 (GMT) |
commit | 8ba8aeb4d8cc82ddb494f9c8c8a9cf2620b5df4d (patch) | |
tree | 1891410e514d2320a28c56302eef877f98df5811 | |
parent | a9636f8f6d51caac57f740287c37a4563d33c8da (diff) | |
download | tk-8ba8aeb4d8cc82ddb494f9c8c8a9cf2620b5df4d.zip tk-8ba8aeb4d8cc82ddb494f9c8c8a9cf2620b5df4d.tar.gz tk-8ba8aeb4d8cc82ddb494f9c8c8a9cf2620b5df4d.tar.bz2 |
Fine-tune display during resize events; now shows resize in progress but does not redraw contentview until done
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index 1b43296..fea6049 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -848,12 +848,11 @@ ExposeRestrictProc( - (BOOL) preservesContentDuringLiveResize { - return YES; + return NO; } - (void)viewWillStartLiveResize { - NSDisableScreenUpdates(); [super viewWillStartLiveResize]; [self setNeedsDisplay:NO]; [self setHidden:YES]; @@ -863,7 +862,6 @@ ExposeRestrictProc( - (void)viewDidEndLiveResize { - NSEnableScreenUpdates(); [self setHidden:NO]; [self setNeedsDisplay:YES]; [super setNeedsDisplay:YES]; |