XReparentWindow complications

This is a discussion on XReparentWindow complications within the Xwindows forums, part of the Tools category; 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 ...

Go Back   Unix Linux Forum > Technologies & Tools > Tools > Xwindows

FixUnix.com - Unix Linux Forums

Unix Content Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-03-2008, 03:20 PM
Default XReparentWindow complications

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
frontend.

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.
Reply With Quote
  #2  
Old 11-04-2008, 02:19 AM
Default Re: XReparentWindow complications

bbillade wrote:
> Is there something I can do to prevent these errors, such as handling
> some event?


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.


Regards,
- Graeme -

__________________________________________________ _____
fpGUI - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

Reply With Quote
Reply

Thread Tools


All times are GMT -5. The time now is 12:51 AM.

In an effort to better serve ads to our visitors, cookies are used on Fixunix.com. For more information, check out our Privacy Policy.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger