winex11: Don't try to change the window visual if we don't have a valid ARGB visual.

This commit is contained in:
Alexandre Julliard 2012-10-03 09:59:00 +02:00
parent 6f3b097a20
commit 37f36b7326
1 changed files with 1 additions and 1 deletions

View File

@ -2371,7 +2371,7 @@ BOOL CDECL X11DRV_UpdateLayeredWindow( HWND hwnd, const UPDATELAYEREDWINDOWINFO
if (!(data = get_win_data( hwnd ))) return FALSE;
if (!data->embedded) set_window_visual( data, &argb_visual );
if (!data->embedded && argb_visual.visualid) set_window_visual( data, &argb_visual );
rect = *window_rect;
OffsetRect( &rect, -window_rect->left, -window_rect->top );