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

Reviewed-by: art, dcherepanov
This commit is contained in:
Anton Tarasov 2009-12-07 16:38:44 +03:00
parent 295a7c98ef
commit 45c70cd97e

View File

@ -133,7 +133,7 @@ public class XEmbedClientHelper extends XEmbedHelper implements XEventDispatcher
}
void handleFocusIn(int detail) {
if (embedded.focusAllowedFor()) {
embedded.handleWindowFocusInSync(0);
embedded.handleWindowFocusIn(0);
}
switch(detail) {
case XEMBED_FOCUS_CURRENT:
@ -205,7 +205,7 @@ public class XEmbedClientHelper extends XEmbedHelper implements XEventDispatcher
// embedded is an active window before sending WINDOW_LOST_FOCUS
// to shared code
if (XKeyboardFocusManagerPeer.getCurrentNativeFocusedWindow() == embedded.target) {
embedded.handleWindowFocusOutSync(null, 0);
embedded.handleWindowFocusOut(null, 0);
}
}