Commit 1fc39be6 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

Fix X crash when running in managed mode.

parent 5d2b0a14
......@@ -191,6 +191,7 @@ static Window create_icon_window( Display *display, WND *win )
ButtonPressMask | ButtonReleaseMask);
attr.bit_gravity = NorthWestGravity;
attr.backing_store = NotUseful/*WhenMapped*/;
attr.colormap = X11DRV_PALETTE_PaletteXColormap; /* Needed due to our visual */
wine_tsx11_lock();
data->icon_window = XCreateWindow( display, root_window, 0, 0,
......@@ -198,7 +199,7 @@ static Window create_icon_window( Display *display, WND *win )
GetSystemMetrics( SM_CYICON ),
0, screen_depth,
InputOutput, visual,
CWEventMask | CWBitGravity | CWBackingStore, &attr );
CWEventMask | CWBitGravity | CWBackingStore | CWColormap, &attr );
XSaveContext( display, data->icon_window, winContext, (char *)win->hwndSelf );
wine_tsx11_unlock();
......
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