control the focus in general skin for ubuntu 12.10
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
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());
+ }
}
}
}
@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);