http://bugs.winehq.org/show_bug.cgi?id=9320
--- Comment #14 from Vitaliy Margolen vitaliy@kievinfo.com 2009-11-08 17:19:50 --- I've been hacking on-and-off on this bug for a long while. And every single time it went into a dead-end.
Removing that check you were talking about: static inline BOOL can_activate_window( HWND hwnd ) { ... - if (hwnd == GetDesktopWindow()) return FALSE;
Is the major step forward. But something still doesn't want to set focus to the notepad, even when caption becomes active. Also none of the WM_SETFOCUS/WM_KILLFOCUS and associated notifications make it to the explorer's message loop even as you indicated it appears they should.