mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 12:34:32 +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) {
|
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
|
||||||
// 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue