[PATCH] user32: Always send WM_NCACTIVATE when changing the foreground window.
Alexandre Julliard
julliard at winehq.org
Thu Mar 9 12:49:33 CST 2017
Alex Henrie <alexhenrie24 at 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 at winehq.org
More information about the wine-devel
mailing list