From: giwoong.kim Date: Wed, 2 Jan 2013 07:30:49 +0000 (+0900) Subject: skin: moves the key window above the main window X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1233 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3b1718829834791293c9976d54e48e231f38958;p=sdk%2Femulator%2Fqemu.git skin: moves the key window above the main window Moves the key window above the main window if main window got the focus in general skin. Signed-off-by: GiWoong Kim --- diff --git a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java index 774893774d..a45c560ddd 100644 --- a/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java +++ b/tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java @@ -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); } } }