I am writing a media application that uses one program to play a video
media file and another as the frontend. I am using XReparentWindow to
put the window from the media player into another window in the
The application works until I try to reparent the window again, for
example to go fullscreen. After calling XReparentWindow a second time
I get BadDrawable errors from the media player.
Is there something I can do to prevent these errors, such as handling
some event? Could my complications possibly be due from reparenting a
window from one process into another rather than from a single
process? Any suggestions would be appreciated.
Re: XReparentWindow complications
> Is there something I can do to prevent these errors, such as handling
> some event?[/color]
After reparenting the specified window, XReparentWindow() causes the X
server to generate a ReparentNotify event.
The X server will also call UnMapWindow and MapWindow, but I'm not sure
if those generate the usual events in the case of a XReparentWindow() call.
- Graeme -
fpGUI - a cross-platform GUI toolkit using Free Pascal