提交 fcba311b 编写于 作者: D dav

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
上级 1f9ca74d
...@@ -2144,9 +2144,11 @@ class XWindowPeer extends XPanelPeer implements WindowPeer, ...@@ -2144,9 +2144,11 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
// Outside this toplevel hierarchy // Outside this toplevel hierarchy
// According to the specification of UngrabEvent, post it // According to the specification of UngrabEvent, post it
// when press occurs outside of the window and not on its owned windows // when press occurs outside of the window and not on its owned windows
grabLog.fine("Generating UngrabEvent on {0} because not inside of shell", this); if (xbe.get_type() == XConstants.ButtonPress) {
postEventToEventQueue(new sun.awt.UngrabEvent(getEventSource())); grabLog.fine("Generating UngrabEvent on {0} because not inside of shell", this);
return; postEventToEventQueue(new sun.awt.UngrabEvent(getEventSource()));
return;
}
} }
// First, get the toplevel // First, get the toplevel
XWindowPeer toplevel = target.getToplevelXWindow(); XWindowPeer toplevel = target.getToplevelXWindow();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册