From: Alex Henrie alexhenrie24@gmail.com
With this change, unchecking "Allow the window manager to control the windows" in winecfg makes 256-color games look right in Xephyr without having to run a window manager in Xephyr too. --- dlls/winex11.drv/palette.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/winex11.drv/palette.c b/dlls/winex11.drv/palette.c index 43974fe8896..1e7cd2e19fd 100644 --- a/dlls/winex11.drv/palette.c +++ b/dlls/winex11.drv/palette.c @@ -1291,6 +1291,12 @@ UINT X11DRV_RealizePalette( PHYSDEV dev, HPALETTE hpal, BOOL primary )
} pthread_mutex_unlock( &palette_mutex ); + + /* if not allowing the window manager to control the windows, don't rely on the window manager + * to install the colormap */ + if (!managed_mode) + XInstallColormap( gdi_display, default_colormap ); + return iRemapped; }