On Sun, Apr 16, 2000 at 12:37:09PM +0000, Eric Pouech wrote:
> using Windows Media Player (6.4.something), I run into the following issue:
> - when a ddraw object is created, it gets the X11 drawable from the window
> - in some cases of SetParent, this X11 drawable (the X11 window) is deleted
> because X11 reparenting doesn't seem doable
> - the cached X11 drawable in ddraw then becomes invalid (leading to some
> X11 errors)
>
> any idea to fix it ? (like no longer cache the drawable in ddraw, or better
> trap the error, change reparent code, add a hook for ddraw in X11 reparent
> code...)
No longer caching has the drawback that it might cost a lot of cycles,
especially the locking stuff. It is also not 100% safe of thread problems.
Changing the reparent code... Not my field.
Hook for ddraw in X11 reparent code ... Too hacky.
I can do the no-longer cached approach, but I do not entirely like it.
Ciao, Marcus