Windows: When parented, take focus on mouse click
This commit is contained in:
parent
b5c893d207
commit
1a9bed90ed
|
@ -611,6 +611,8 @@ final class WindowsDisplay implements DisplayImplementation {
|
|||
private void handleMouseButton(int button, int state, long millis) {
|
||||
if (mouse != null)
|
||||
mouse.handleMouseButton((byte)button, (byte)state, millis);
|
||||
if (parent != null && !isFocused)
|
||||
setFocus(getHwnd());
|
||||
}
|
||||
|
||||
private boolean shouldGrab() {
|
||||
|
|
Loading…
Reference in New Issue