mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
6903890: SWT_AWT focus issues when a dialog is shown/disposed, on X11
Reviewed-by: art, dcherepanov
This commit is contained in:
parent
295a7c98ef
commit
45c70cd97e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue