Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 337475 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/swt/internal/widgets/EventUtil.java (-2 / +5 lines)
Lines 41-49 Link Here
41
  }
41
  }
42
42
43
  private static boolean isAccessible( final Control control ) {
43
  private static boolean isAccessible( final Control control ) {
44
    Shell controlShell = control.getShell();
45
    Shell activeShell = control.getDisplay().getActiveShell();
44
    return    control.getEnabled() 
46
    return    control.getEnabled() 
45
           && control.getVisible() 
47
           && control.getVisible()
46
           && isShellAccessible( control.getShell() );
48
           && controlShell == activeShell
49
           && isShellAccessible( controlShell );
47
  }
50
  }
48
51
49
  private static boolean isAccessible( final Menu menu ) {
52
  private static boolean isAccessible( final Menu menu ) {

Return to bug 337475