From: giwoong.kim Date: Fri, 28 Dec 2012 07:41:27 +0000 (+0900) Subject: skin: sync up the focus between main and key window X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1247 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=882ed2f366f1dff57e8b20885a1ed242258ac173;p=sdk%2Femulator%2Fqemu.git skin: sync up the focus between main and key window I added some workaround for sync up the focus between main window and key window 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 876dc1e013..e65a8bc62e 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 @@ -464,6 +464,15 @@ public class EmulatorSkin { @Override 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) { + SkinUtil.setTopMost(controlPanel.getShell(), true); + SkinUtil.setTopMost(controlPanel.getShell(), false); + } + } } public void focusLost(FocusEvent event) {