Skip to content
Snippets Groups Projects
Commit 79b63384 authored by Andrei Dmitriev's avatar Andrei Dmitriev
Browse files

6893325: JComboBox and dragging to an item outside the bounds of the...

6893325: JComboBox and dragging to an item outside the bounds of the containing JFrame is not selecting that

Reviewed-by: art, dcherepanov
parent 99ec4574
Branches
Tags
No related merge requests found
......@@ -2144,10 +2144,12 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
// Outside this toplevel hierarchy
// According to the specification of UngrabEvent, post it
// when press occurs outside of the window and not on its owned windows
if (xbe.get_type() == XConstants.ButtonPress) {
grabLog.fine("Generating UngrabEvent on {0} because not inside of shell", this);
postEventToEventQueue(new sun.awt.UngrabEvent(getEventSource()));
return;
}
}
// First, get the toplevel
XWindowPeer toplevel = target.getToplevelXWindow();
if (toplevel != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment