javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/widgets/Control.java
equal
deleted
inserted
replaced
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(); |