summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXInit.c
diff options
context:
space:
mode:
authorculler <culler>2018-11-06 21:21:50 (GMT)
committerculler <culler>2018-11-06 21:21:50 (GMT)
commit1cd3199254c47a7fd9e308663776b9e540d527c2 (patch)
tree448e2c1f7ba55253f13ed714dcecd4aa83e77417 /macosx/tkMacOSXInit.c
parentc5205ce3fbef20b6a3e78118e6ccfea8c05e0dd7 (diff)
downloadtk-1cd3199254c47a7fd9e308663776b9e540d527c2.zip
tk-1cd3199254c47a7fd9e308663776b9e540d527c2.tar.gz
tk-1cd3199254c47a7fd9e308663776b9e540d527c2.tar.bz2
Came up with a scheme for making test images behave the way that the
tests assume they do.
Diffstat (limited to 'macosx/tkMacOSXInit.c')
-rw-r--r--macosx/tkMacOSXInit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/macosx/tkMacOSXInit.c b/macosx/tkMacOSXInit.c
index 10ef87e..8e9c600 100644
--- a/macosx/tkMacOSXInit.c
+++ b/macosx/tkMacOSXInit.c
@@ -47,6 +47,7 @@ static char scriptPath[PATH_MAX + 1] = "";
@synthesize poolLock = _poolLock;
@synthesize macMinorVersion = _macMinorVersion;
@synthesize isDrawing = _isDrawing;
+@synthesize simulateDrawing = _simulateDrawing;
@end
/*
@@ -162,13 +163,14 @@ static char scriptPath[PATH_MAX + 1] = "";
systemVersion = [[NSProcessInfo processInfo] operatingSystemVersion];
minorVersion = systemVersion.minorVersion;
#endif
- [NSApp setMacMinorVersion: minorVersion];
+ [NSApp setMacMinorVersion: minorVersion];
/*
* We are not drawing yet.
*/
- [NSApp setIsDrawing: NO];
+ [NSApp setIsDrawing:NO];
+ [NSApp setSimulateDrawing:NO];
/*
* Be our own delegate.
@@ -178,6 +180,7 @@ static char scriptPath[PATH_MAX + 1] = "";
/*
* Make sure we are allowed to open windows.
*/
+
[NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];
/*