src/windows/native/sun/windows/awt_Component.cpp
Print this page
*** 1547,1557 ****
if (window && window->IsFocusableWindow()) {
// AWT/Swing will later request focus to a proper component
// on handling the Java mouse event. Anyway, we have to
// activate the window here as it works both for AWT & Swing.
// Do it in our own fassion,
! window->AwtSetActiveWindow(TRUE, LOWORD(lParam)/*hittest*/);
}
mr = mrConsume;
retValue = MA_NOACTIVATE;
break;
}
--- 1547,1557 ----
if (window && window->IsFocusableWindow()) {
// AWT/Swing will later request focus to a proper component
// on handling the Java mouse event. Anyway, we have to
// activate the window here as it works both for AWT & Swing.
// Do it in our own fassion,
! window->AwtSetActiveWindow(LOWORD(lParam)/*hittest*/);
}
mr = mrConsume;
retValue = MA_NOACTIVATE;
break;
}
*** 1920,1930 ****
retValue = SynthesizeWmKillFocus(GetHWnd(), NULL);
}
mr = mrConsume;
break;
case WM_AWT_WINDOW_SETACTIVE:
! retValue = (LRESULT)((AwtWindow*)this)->AwtSetActiveWindow((BOOL)wParam);
mr = mrConsume;
break;
case WM_AWT_SET_SCROLL_INFO: {
SCROLLINFO *si = (SCROLLINFO *) lParam;
--- 1920,1930 ----
retValue = SynthesizeWmKillFocus(GetHWnd(), NULL);
}
mr = mrConsume;
break;
case WM_AWT_WINDOW_SETACTIVE:
! retValue = (LRESULT)((AwtWindow*)this)->AwtSetActiveWindow();
mr = mrConsume;
break;
case WM_AWT_SET_SCROLL_INFO: {
SCROLLINFO *si = (SCROLLINFO *) lParam;