user32: Switch to normal window drawing on SetLayeredWindowAttributes call.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2017-04-18 18:43:19 +02:00 committed by Alexandre Julliard
parent 6a0ffd70c7
commit 34b108dd1d
3 changed files with 9 additions and 1 deletions

View File

@ -3749,7 +3749,11 @@ BOOL WINAPI SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alpha, DWO
}
SERVER_END_REQ;
if (ret) USER_Driver->pSetLayeredWindowAttributes( hwnd, key, alpha, flags );
if (ret)
{
USER_Driver->pSetLayeredWindowAttributes( hwnd, key, alpha, flags );
update_window_state( hwnd );
}
return ret;
}

View File

@ -1561,6 +1561,8 @@ void CDECL macdrv_SetLayeredWindowAttributes(HWND hwnd, COLORREF key, BYTE alpha
if (data)
{
data->layered = TRUE;
data->ulw_layered = FALSE;
if (data->surface) set_surface_use_alpha(data->surface, FALSE);
if (data->cocoa_window)
{
sync_window_opacity(data, key, alpha, FALSE, flags);

View File

@ -2535,6 +2535,8 @@ void CDECL X11DRV_SetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alph
if (data)
{
set_window_visual( data, &default_visual );
if (data->whole_window)
sync_window_opacity( data->display, data->whole_window, key, alpha, flags );
if (data->surface)