Date: Mon, 12 Jan 2004 12:04:50 +0100 To: Richard Jones Cc: lablgtk at kaba.or.jp Subject: Re: Render into an existing XWindow ID? Message-ID: <20040112110450.GA23990 at iliana> References: <20040111155334.GA14026 at redhat.com> <20040112091805.GA1067 at gallu.homelinux.org> <16386.28767.842624.81425 at akasha.ijm.jussieu.fr> <20040112101349.GA20669 at redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20040112101349.GA20669 at redhat.com> From: Sven Luther On Mon, Jan 12, 2004 at 10:13:49AM +0000, Richard Jones wrote: > OK, I looked at GtkSocket / GtkPlug and the XEmbed protocol, and it > isn't quite what I had in mind. > > The situation is this: in a Mozilla plugin we can query Mozilla for > the following information: > > * Display > * X Window ID > * size and other attributes of the window. > > Mozilla plugins are .so files running in the same process as Mozilla. > > It looks as though the XEmbed protocol can't be used here. In > particular there's just no way to put a GtkSocket into the native X > window without some embedding, resulting in a chicken-and-egg problem. > > What I really want to do, I suppose, is create a new GtkWindow, but > tell it not to create a new underlying X Window, but to reuse my X > Window ID for the window. > > If that makes any sense ... > > You can probably see where I'm going with this - embedding OCaml > programs as Mozilla plugins. That would be really great. Friendly, Sven Luther