summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWindowEvent.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-02-18 03:31:05 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-02-18 03:31:05 (GMT)
commit63a54a006cb15d7d4d9a7c1f6feb701e14adb9a7 (patch)
tree1c0eb20013f39d993cdf5d669353d5c918073ccd /macosx/tkMacOSXWindowEvent.c
parentc9183e7abbb0f6351dde4cd0c07ea1d2e532ee4b (diff)
downloadtk-63a54a006cb15d7d4d9a7c1f6feb701e14adb9a7.zip
tk-63a54a006cb15d7d4d9a7c1f6feb701e14adb9a7.tar.gz
tk-63a54a006cb15d7d4d9a7c1f6feb701e14adb9a7.tar.bz2
Fine-tune display during resize events; now shows resize in progress but does not redraw contentview until done
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r--macosx/tkMacOSXWindowEvent.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c
index cf8d9a6..5556464 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -844,12 +844,11 @@ ExposeRestrictProc(
- (BOOL) preservesContentDuringLiveResize
{
- return YES;
+ return NO;
}
- (void)viewWillStartLiveResize
{
- NSDisableScreenUpdates();
[super viewWillStartLiveResize];
[self setNeedsDisplay:NO];
[self setHidden:YES];
@@ -859,7 +858,6 @@ ExposeRestrictProc(
- (void)viewDidEndLiveResize
{
- NSEnableScreenUpdates();
[self setHidden:NO];
[self setNeedsDisplay:YES];
[super setNeedsDisplay:YES];