summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWindowEvent.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-02-18 03:32:48 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-02-18 03:32:48 (GMT)
commit8ba8aeb4d8cc82ddb494f9c8c8a9cf2620b5df4d (patch)
tree1891410e514d2320a28c56302eef877f98df5811 /macosx/tkMacOSXWindowEvent.c
parenta9636f8f6d51caac57f740287c37a4563d33c8da (diff)
downloadtk-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
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 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];