skin: moves the key window above the main window
authorgiwoong.kim <giwoong.kim@samsung.com>
Wed, 2 Jan 2013 07:30:49 +0000 (16:30 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Wed, 2 Jan 2013 07:54:48 +0000 (16:54 +0900)
Moves the key window above the main window if
main window got the focus in general skin.

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

index 7748937..a45c560 100644 (file)
@@ -465,16 +465,10 @@ public class EmulatorSkin {
                        public void focusGained(FocusEvent event) {
                                logger.info("gain focus");
 
-                               /* temp : control the key window focus */
                                if (isOnTop == false && isControlPanel == true) {
                                        if (controlPanel != null &&
                                                        controlPanel.isAttach() != SWT.NONE) {
-                                               if (!SwtUtil.isMacPlatform()) {
-                                                       SkinUtil.setTopMost(controlPanel.getShell(), true);
-                                                       SkinUtil.setTopMost(controlPanel.getShell(), false);
-                                                       SkinUtil.setTopMost(shell, true);
-                                                       SkinUtil.setTopMost(shell, false);
-                                               }
+                                               controlPanel.getShell().moveAbove(shell);
                                        }
                                }
                        }