summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barnes <krbarnes>2009-10-05 18:53:29 +0000
committerKevin Barnes <krbarnes>2009-10-05 18:53:29 +0000
commita35094e0e17fd101c22a0b35212494529e4ff96a (patch)
tree0376f14c137c7bf792bdb7a53bbb94382b6007e7
parentedc63054aecc4877740e7c9343d93f03b30b918e (diff)
downloadeclipse.platform.swt-a35094e0e17fd101c22a0b35212494529e4ff96a.tar.gz
eclipse.platform.swt-a35094e0e17fd101c22a0b35212494529e4ff96a.tar.xz
eclipse.platform.swt-a35094e0e17fd101c22a0b35212494529e4ff96a.zip
291382 - Cocoa should defer window creation - revert NPE in Control.internalNewGC
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
index 3ec887cc24..c2ab16efd0 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
@@ -571,7 +571,7 @@ void createHandle () {
NSScreen primaryScreen = new NSScreen(NSScreen.screens().objectAtIndex(0));
if (parent != null) screen = parent.getShell().window.screen();
if (screen == null) screen = primaryScreen;
- window = window.initWithContentRect(new NSRect(), styleMask, OS.NSBackingStoreBuffered, true, screen);
+ window = window.initWithContentRect(new NSRect(), styleMask, OS.NSBackingStoreBuffered, false, screen);
if ((style & (SWT.NO_TRIM | SWT.BORDER | SWT.SHELL_TRIM)) == 0 || (style & (SWT.TOOL | SWT.SHEET)) != 0) {
window.setHasShadow (true);
}