diff options
author | Kevin Barnes <krbarnes> | 2007-08-20 17:45:18 +0000 |
---|---|---|
committer | Kevin Barnes <krbarnes> | 2007-08-20 17:45:18 +0000 |
commit | 10218d2787ae3d5d752606621bfcb048c1c53be4 (patch) | |
tree | fc92e86410aed8fa790f90e7d7344e0669396766 | |
parent | 955ded925bcf4c3ba45151b68377c60c954193fe (diff) | |
download | eclipse.platform.swt-10218d2787ae3d5d752606621bfcb048c1c53be4.tar.gz eclipse.platform.swt-10218d2787ae3d5d752606621bfcb048c1c53be4.tar.xz eclipse.platform.swt-10218d2787ae3d5d752606621bfcb048c1c53be4.zip |
bug 37031 - fullscreen support
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java index fba6398e79..493ddb0f03 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Shell.java @@ -905,19 +905,19 @@ int kEventWindowActivated (int nextHandler, int theEvent, int userData) { sendEvent (SWT.Activate); if (!isDisposed ()) { if (!restoreFocus () && !traverseGroup (true)) setFocus (); - } - display.activeShell = null; - Shell parentShell = this; - while (parentShell.parent != null) { - parentShell = (Shell) parentShell.parent; - if (parentShell.fullScreen) { - break; + display.activeShell = null; + Shell parentShell = this; + while (parentShell.parent != null) { + parentShell = (Shell) parentShell.parent; + if (parentShell.fullScreen) { + break; + } + } + if (!parentShell.fullScreen || menuBar != null) { + updateSystemUIMode (); + } else { + parentShell.updateSystemUIMode (); } - } - if (!parentShell.fullScreen || menuBar != null) { - updateSystemUIMode (); - } else { - parentShell.updateSystemUIMode (); } } return result; |