diff options
author | Scott Kovatch <skovatch> | 2011-01-10 18:52:20 +0000 |
---|---|---|
committer | Scott Kovatch <skovatch> | 2011-01-10 18:52:20 +0000 |
commit | 7c365a9b491fc2157a4d44e17ff65060724712f7 (patch) | |
tree | ffcac3752ac246b28ee4002a618a73dd6a0c2ffc /bundles | |
parent | e97a6f9ba394d2481c8510a8d9a493402a3ef897 (diff) | |
download | eclipse.platform.swt-7c365a9b491fc2157a4d44e17ff65060724712f7.tar.gz eclipse.platform.swt-7c365a9b491fc2157a4d44e17ff65060724712f7.tar.xz eclipse.platform.swt-7c365a9b491fc2157a4d44e17ff65060724712f7.zip |
333893 - NSDocModalWindowMask can be a key window.
Diffstat (limited to 'bundles')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java | 2 |
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 87e3508dbc..42ff24a325 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 @@ -510,7 +510,7 @@ boolean canBecomeKeyWindow (int /*long*/ id, int /*long*/ sel) { // Only answer if SWT created the window. if (window != null) { int /*long*/ styleMask = window.styleMask(); - if (styleMask == OS.NSBorderlessWindowMask || (styleMask & OS.NSNonactivatingPanelMask) != 0) return true; + if (styleMask == OS.NSBorderlessWindowMask || (styleMask & (OS.NSNonactivatingPanelMask | OS.NSDocModalWindowMask)) != 0) return true; } return super.canBecomeKeyWindow (id, sel); } |