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 | 9b4458a7aefb3a0c171a71a07b61dea1327d8773 (patch) | |
tree | e9ea38759480e94e30faa9a15102a7a73c5501a7 | |
parent | fd6f0fc112efb4c2b9167172390d69458e9c29b9 (diff) | |
download | tk-9b4458a7aefb3a0c171a71a07b61dea1327d8773.zip tk-9b4458a7aefb3a0c171a71a07b61dea1327d8773.tar.gz tk-9b4458a7aefb3a0c171a71a07b61dea1327d8773.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]; |