skin: control the focus in general skin for ubuntu 12.10
authorgiwoong.kim <giwoong.kim@samsung.com>
Mon, 14 Jan 2013 10:57:54 +0000 (19:57 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Mon, 14 Jan 2013 10:57:54 +0000 (19:57 +0900)
control the focus in general skin for ubuntu 12.10

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

index 73af0e6..265937a 100644 (file)
@@ -476,7 +476,10 @@ public class EmulatorSkin {
                                if (isOnTop == false && isKeyWindow == true) {
                                        if (keyWindow != null) {
                                                keyWindow.getShell().moveAbove(shell);
-                                               shell.moveAbove(keyWindow.getShell());
+
+                                               if (keyWindow.getDockPosition() != SWT.NONE) {
+                                                       shell.moveAbove(keyWindow.getShell());
+                                               }
                                        }
                                }
                        }
index 3ba88e6..7bcf03b 100644 (file)
@@ -295,6 +295,11 @@ public class KeyWindow extends SkinWindow {
                        @Override
                        public void mouseMove(MouseEvent e) {
                                if (isGrabbedShell == true && e.button == 0/* left button */) {
+                                       if (getDockPosition() != SWT.NONE) {
+                                               dock(SWT.NONE, false, false);
+                                               shell.moveAbove(parent);
+                                       }
+
                                        /* move a window */
                                        Point previousLocation = shell.getLocation();
                                        int x = previousLocation.x + (e.x - grabPosition.x);