Alex Henrie alexhenrie24@gmail.com writes:
- if (send_msg_old) /* old window belongs to other thread */
SendNotifyMessageW( previous, WM_WINE_SETACTIVEWINDOW, 0, 0 );
- else if (send_msg_new) /* old window belongs to us but new one to other thread */
ret = set_active_window( 0, NULL, mouse, TRUE );
- if (GetActiveWindow() == hwnd) {
The active window is per-thread but SetForegroundWindow works across threads, so this can't do the right thing.