< prev index next >
modules/graphics/src/main/java/com/sun/glass/ui/win/WinAccessible.java
Print this page
rev 9254 : 8132897: ComboBox hangs on Windows 10 when clicked while not in focus
Reviewed-by:
*** 943,956 ****
return acc != null ? acc.getNativeAccessible() : 0L;
}
} else {
node = (Node)getAttribute(PARENT);
if (node == null) {
! /* scene root node case */
Scene scene = (Scene)getAttribute(SCENE);
WinAccessible acc = (WinAccessible)getAccessible(scene);
! if (acc == null || acc.isDisposed()) return 0L;
return acc.getNativeAccessible();
}
}
break;
}
--- 943,957 ----
return acc != null ? acc.getNativeAccessible() : 0L;
}
} else {
node = (Node)getAttribute(PARENT);
if (node == null) {
! /* This is the root node of the scene or the scene itself */
Scene scene = (Scene)getAttribute(SCENE);
WinAccessible acc = (WinAccessible)getAccessible(scene);
! /* Return 0 if we are already at the scene or if scene is null */
! if (acc == null || acc == this || acc.isDisposed()) return 0L;
return acc.getNativeAccessible();
}
}
break;
}
< prev index next >