Windows: When parented, take focus on mouse click

This commit is contained in:
Elias Naur 2008-04-09 18:25:30 +00:00
parent b5c893d207
commit 1a9bed90ed
1 changed files with 2 additions and 0 deletions

View File

@ -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() {