Commit 34b108dd authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

user32: Switch to normal window drawing on SetLayeredWindowAttributes call.

parent 6a0ffd70
......@@ -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;
}
......
......@@ -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);
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment