• Zebediah Figura's avatar
    winex11: Track the client colormap separately. · 22993aff
    Zebediah Figura authored
    If a window with an OpenGL surface attached is reparented as a child window,
    and then reparented as a top-level window, so that its whole window is
    destroyed and then recreated, it will be recreated with the colormap of its
    child window, which more than likely has a different visual. This violates
    the X11 specification, which states that a window's colormap must have the
    same visual as the window itself, and causes the X server to return BadMatch
    to the CreateWindow request.
    Signed-off-by: 's avatarZebediah Figura <z.figura12@gmail.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    22993aff
x11drv.h 32.3 KB