Running A Generic Application In an X Window

Dolloff, Matthew D. (JSC-ER7) matthew.d.dolloff at nasa.gov
Fri Apr 14 09:12:15 PDT 2006


That looks like it might do what I want actually.  The only catch is when I try to run Xnest with -parent I get the following error

[mdolloff at dolloff-matthew ~]$ Xnest :1 -parent 48234555
Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  2 (X_ChangeWindowAttributes)
  Serial number of failed request:  99
  Current serial number in output stream:  100


Any idea what is going on?  Sorry for all the questions, but I am really new to X programming.


-----Original Message-----
From: xorg-bounces at lists.freedesktop.org on behalf of Glynn Clements
Sent: Fri 4/14/2006 4:12 AM
To: xorg at lists.freedesktop.org
Subject: Re: Running A Generic Application In an X Window
 

Russell Shaw wrote:

> > I have an application that opens an X window within itself and I am
> > trying to allow any other generic application to open inside the X
> > window that was opened by this program.  I have the window ID for the
> > blank X window, but I am not sure how to get the app to actually open in
> > it.
> 
> Applications that create a top-level window just create it on the root window.
> To make them open on a different window, would require the app have a command
> option for passing the new "virtual root" window for it to use.
> 
> If you wrote a window manager, it could identify specific applications and
> reparent their top-level window into any other window you like.

Alternatively, you could run Xnest in your application-supplied window
using the -parent switch, then run the application on the Xnest
display.

As the application would be running on a separate display,
inter-program communication (copy/paste, drag/drop etc) won't work
without some additional effort.

-- 
Glynn Clements <glynn at gclements.plus.com>
_______________________________________________
xorg mailing list
xorg at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20060414/771ec432/attachment.html>


More information about the xorg mailing list