javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/widgets/Control.java
changeset 78 71ad690e91f5
parent 72 1f0034e370aa
child 80 d6dafc5d983f
equal deleted inserted replaced
72:1f0034e370aa 78:71ad690e91f5
   875     if (!isEnabled() || !isVisible() || !isActive())
   875     if (!isEnabled() || !isVisible() || !isActive())
   876         return false;
   876         return false;
   877     if (isFocusControl())
   877     if (isFocusControl())
   878         return true;
   878         return true;
   879     shell.setSavedFocus(null);
   879     shell.setSavedFocus(null);
   880     shell.bringToTop(false);
       
   881 
   880 
   882     // Wait for requests sent in bringToTop to complete. This doesn't guarantee
   881     // Wait for requests sent in bringToTop to complete. This doesn't guarantee
   883     // that focus has moved after this.
   882     // that focus has moved after this.
   884     if (OS.windowServer == OS.WS_X11) {
   883     if (OS.windowServer == OS.WS_X11) {
   885         waitXRequestComplete();
   884         waitXRequestComplete();