[Windows] Restored grabFocus() on WM_MOUSEACTIVATE.

This commit is contained in:
Ioannis Tsakpinis 2013-04-24 11:45:01 +03:00
parent b66a3243a8
commit caf21d89dc
1 changed files with 4 additions and 1 deletions

View File

@ -980,8 +980,11 @@ final class WindowsDisplay implements DisplayImplementation {
appActivate(true);
return 0L;
case WM_MOUSEACTIVATE:
if ( parent != null )
if ( parent != null ) {
if ( !isFocused )
grabFocus();
return 3L; // MA_NOACTIVATE
}
break;
case WM_MOUSEMOVE:
int xPos = (int)(short)(lParam & 0xFFFF);