http://bugs.winehq.org/show_bug.cgi?id=13886
Summary: Focus is killed after unminimizing the window Product: Wine Version: CVS/GIT Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P4 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dylan.ah.smith@gmail.com
Steps to produce the bug: 1. Open up Wine's wordpad wine wordpad 2. Minimize the window 3. Restore the window Afterwards the window will have focus but the caret will not be shown.
I tested this on KDE 3.5.9 and Gnome 2.22.2 with the same bug occurring on both.
I tested wordpad in Windows XP SP3, and there was no issue there. I tested with WINEDLLOVERRIDES="riched20=n" and the bug occurred.
From this I believe that it isn't a wordpad, or richedit issue.
I added some MESSAGE statements to find the sequence of events that cause the cursor not to be shown, and this is what I found.
1. After the window is minimized WM_KILLFOCUS is sent to the richedit control as expected. 2. After the window is restored, WM_SETFOCUS is sent as expected, then another WM_KILLFOCUS is incorrectly sent which will cause the caret to be hidden and destroyed.