Fix focus problem in cursor.exe

Joshua Thielen thielen at
Mon Oct 22 22:04:36 CDT 2001

This patch fixes a focus problem in cursor.exe. cursor.ese handles the 
WM_ACTIVATE message and since it does not call DefWindowProc when 
messages are handled, GetFocus is not called as it normally is in 
DefWndProc. Since no window (or the desktop window) has the focus, 
PERQDATA_GetFocusWnd will return 0 and the focus will not be switched in 
WINPOS_SetActiveWindow. This patch fixes the behavior so that the focus 
will still be switched to the activated window even if the 
PERQDATA_GetFocusWnd returns 0.

modified files:

change log:
Switch focus to activated window even if no window previously had the focus.

Joshua Thielen
thielen at

More information about the wine-devel mailing list