On 21 April 2014 17:49, Ken Thomases ken@codeweavers.com wrote:
While implementing support for full-screen surfaces in the X11 driver, it became clear that I needed a reference to the wined3d device window or, more generally, the window for which the surface is a substitute. This is necessary to manage focus since the full-screen window has to have X focus but the Win32 focus needs to remain with the device window.
Because of that, the function wglCreateSurfaceWINE() now takes a proxy window parameter. This feels like an ugly kludge but I didn't find a cleaner alternative. I'd be happy to discuss the X windowing issues that I feel lead to this requirement with anybody who may have better ideas.
I'll admit to only having looked over the implementation very briefly so far, but are we quite sure we need a separate X window for this?