提交 b022c614 编写于 作者: A ant

6903890: SWT_AWT focus issues when a dialog is shown/disposed, on X11

Reviewed-by: art, dcherepanov
上级 5eb1883c
...@@ -133,7 +133,7 @@ public class XEmbedClientHelper extends XEmbedHelper implements XEventDispatcher ...@@ -133,7 +133,7 @@ public class XEmbedClientHelper extends XEmbedHelper implements XEventDispatcher
} }
void handleFocusIn(int detail) { void handleFocusIn(int detail) {
if (embedded.focusAllowedFor()) { if (embedded.focusAllowedFor()) {
embedded.handleWindowFocusInSync(0); embedded.handleWindowFocusIn(0);
} }
switch(detail) { switch(detail) {
case XEMBED_FOCUS_CURRENT: case XEMBED_FOCUS_CURRENT:
...@@ -205,7 +205,7 @@ public class XEmbedClientHelper extends XEmbedHelper implements XEventDispatcher ...@@ -205,7 +205,7 @@ public class XEmbedClientHelper extends XEmbedHelper implements XEventDispatcher
// embedded is an active window before sending WINDOW_LOST_FOCUS // embedded is an active window before sending WINDOW_LOST_FOCUS
// to shared code // to shared code
if (XKeyboardFocusManagerPeer.getCurrentNativeFocusedWindow() == embedded.target) { if (XKeyboardFocusManagerPeer.getCurrentNativeFocusedWindow() == embedded.target) {
embedded.handleWindowFocusOutSync(null, 0); embedded.handleWindowFocusOut(null, 0);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册