9 Mar
2017
9 Mar
'17
6:49 p.m.
Alex Henrie <alexhenrie24(a)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. -- Alexandre Julliard julliard(a)winehq.org