<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: Running A Generic Application In an X Window</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>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<BR>
<BR>
[mdolloff@dolloff-matthew ~]$ Xnest :1 -parent 48234555<BR>
Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from list!<BR>
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list!<BR>
X Error of failed request: BadAccess (attempt to access private resource denied)<BR>
Major opcode of failed request: 2 (X_ChangeWindowAttributes)<BR>
Serial number of failed request: 99<BR>
Current serial number in output stream: 100<BR>
<BR>
<BR>
Any idea what is going on? Sorry for all the questions, but I am really new to X programming.<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: xorg-bounces@lists.freedesktop.org on behalf of Glynn Clements<BR>
Sent: Fri 4/14/2006 4:12 AM<BR>
To: xorg@lists.freedesktop.org<BR>
Subject: Re: Running A Generic Application In an X Window<BR>
<BR>
<BR>
Russell Shaw wrote:<BR>
<BR>
> > I have an application that opens an X window within itself and I am<BR>
> > trying to allow any other generic application to open inside the X<BR>
> > window that was opened by this program. I have the window ID for the<BR>
> > blank X window, but I am not sure how to get the app to actually open in<BR>
> > it.<BR>
><BR>
> Applications that create a top-level window just create it on the root window.<BR>
> To make them open on a different window, would require the app have a command<BR>
> option for passing the new "virtual root" window for it to use.<BR>
><BR>
> If you wrote a window manager, it could identify specific applications and<BR>
> reparent their top-level window into any other window you like.<BR>
<BR>
Alternatively, you could run Xnest in your application-supplied window<BR>
using the -parent switch, then run the application on the Xnest<BR>
display.<BR>
<BR>
As the application would be running on a separate display,<BR>
inter-program communication (copy/paste, drag/drop etc) won't work<BR>
without some additional effort.<BR>
<BR>
--<BR>
Glynn Clements <glynn@gclements.plus.com><BR>
_______________________________________________<BR>
xorg mailing list<BR>
xorg@lists.freedesktop.org<BR>
<A HREF="http://lists.freedesktop.org/mailman/listinfo/xorg">http://lists.freedesktop.org/mailman/listinfo/xorg</A><BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>