Removed the longstanding hack in response to WM_ACTIVATE message.
This commit is contained in:
parent
fcf9f24451
commit
268a36e872
|
@ -294,10 +294,6 @@ static LRESULT DEFWND_DefWinProc( WND *wndPtr, UINT msg, WPARAM wParam,
|
|||
/* The default action in Windows is to set the keyboard focus to
|
||||
* the window, if it's being activated and not minimized */
|
||||
if (LOWORD(wParam) != WA_INACTIVE) {
|
||||
/* I don't know who put this SetWindowPos here, it does not
|
||||
* seem very logical to have it here... (FIXME?) */
|
||||
SetWindowPos(wndPtr->hwndSelf, HWND_TOP, 0, 0, 0, 0,
|
||||
SWP_NOMOVE | SWP_NOSIZE);
|
||||
if (!(wndPtr->dwStyle & WS_MINIMIZE))
|
||||
SetFocus(wndPtr->hwndSelf);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue