[Opera-Linux] Opera will reparent me into...

Eirik Byrkjeflot Anonsen eirik at opera.com
Thu Feb 26 08:00:17 UTC 2009


Kenneth Crudup <kenny at panix.com> writes:

> On Wed, 25 Feb 2009, Alvlin wrote:
>
>> but I really want to know what that message means.
>
> My guess, having seen it before:
>
> - Java starts out from the plugin wrapper creating an independent output
>   window of its own as the parent
>
> - Opera, since we want to see that window as part of the web-page we're
>   browsing, grabs the child Java window we see, and as written, reparents
>   that child to inside Opera, then minimizes the parent window and
>   puts that message in

It is a good guess, but not quite right.  The window is actually
created by the opera process, but from java.  Unfortunately, java does
not support creating a java window as a child window of an arbitrary
X11 window, so we create a top-level window instead.  Which opera will
search for (by the title) and reparent into the correct window inside
opera.

It's all fairly nasty, but java isn't designed for this kind of use.
(To be precise, the java windowing toolkit (awt) isn't designed for
this.  Java itself was mostly well-behaved, if I remember correctly.)

eirik


More information about the Opera-Linux mailing list