skin: TopMost is not supported on Mac
authorgiwoong.kim <giwoong.kim@samsung.com>
Fri, 28 Dec 2012 08:12:44 +0000 (17:12 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Fri, 28 Dec 2012 08:52:18 +0000 (17:52 +0900)
TopMost is not supported on Mac

Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java

index e65a8bc62eaf01623bc93efd7418e4ff8c2997bb..774893774ddff99a09e6991d8c072539027d73f7 100644 (file)
@@ -469,8 +469,12 @@ public class EmulatorSkin {
                                if (isOnTop == false && isControlPanel == true) {
                                        if (controlPanel != null &&
                                                        controlPanel.isAttach() != SWT.NONE) {
-                                               SkinUtil.setTopMost(controlPanel.getShell(), true);
-                                               SkinUtil.setTopMost(controlPanel.getShell(), false);
+                                               if (!SwtUtil.isMacPlatform()) {
+                                                       SkinUtil.setTopMost(controlPanel.getShell(), true);
+                                                       SkinUtil.setTopMost(controlPanel.getShell(), false);
+                                                       SkinUtil.setTopMost(shell, true);
+                                                       SkinUtil.setTopMost(shell, false);
+                                               }
                                        }
                                }
                        }