mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-02-01 13:24:46 +01:00
[Windows] Close any open AWT menus on WM_MOUSEACTIVATE.
This commit is contained in:
parent
f0aafd17a9
commit
7df84ba1a2
|
|
@ -381,6 +381,7 @@ final class WindowsDisplay implements DisplayImplementation {
|
|||
else
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
MenuSelectionManager.defaultManager().clearSelectedPath();
|
||||
parent.requestFocus();
|
||||
}
|
||||
});
|
||||
|
|
@ -524,7 +525,11 @@ final class WindowsDisplay implements DisplayImplementation {
|
|||
nUpdate();
|
||||
|
||||
if ( !isFocused && parent != null && parent.isFocusOwner() ) {
|
||||
KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();
|
||||
}
|
||||
});
|
||||
setFocus(getHwnd());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue