http://bugs.winehq.org/show_bug.cgi?id=13886
--- Comment #6 from Dylan Smith dylan.ah.smith@gmail.com 2008-06-14 01:44:38 --- Created an attachment (id=13989) --> (http://bugs.winehq.org/attachment.cgi?id=13989) Workaround fix that makes wordpad work like notepad regarding this issue
Well here is the workaround fix for this bug. It has wordpad handle this situation like notepad, but this really only masks the problem.
This appears to be a user32 issue, and I am not familiar with that code. Could someone else make a test that will catch this bug, and either create a new bug report that identifies the problem more precisely or fix the bug.
It appears as if user32/winpos.c:show_window() is significant, since the call to SetWindowPos at line 1051 causes the WM_ACTIVATE message to be sent to the main window, and the focus is changed back to the window at the end of the function (line 1100) with a call to SetFocus.