Embedding multible java applets and focus problems

Koos Vriezen koos.vriezen at xs4all.nl
Sun Oct 12 15:20:53 BST 2003


hi,

HTML pages with multible applets have sometimes trouble embedding some of
those. I sometimes see this as debug output:

kjas: swallowing our window: KJAS Applet - Ticket number 24, window id = 31457789
konqueror: ************************** Embed 0x1e001fd into 0x1803cb8 window=0x0 **********
konqueror: >>> before reparent: parent=0x41
konqueror: >>> Loop 0: reparent of 0x1e001fd into 0x1803cb8 successful
kjas: swallowing our window: KJAS Applet - Ticket number 25, window id = 31457795
konqueror: ************************** Embed 0x1e00203 into 0x1803ccd window=0x0 **********
konqueror: >>> before reparent: parent=0x41
konqueror: >>> Loop 0: reparent of 0x1e00203 into 0x1803ccd successful
konqueror: ************************** Embed 0x1e001fd into 0x1803cb8 window=0x1e001fd **********
konqueror: ************************** Embed 0x1e00203 into 0x1803ccd window=0x1e00203 **********

or even

kjas: swallowing our window: KJAS Applet - Ticket number 53, window id = 31458025
konqueror: ************************** Embed 0x1e002e9 into 0x1804a1e window=0x0 **********
konqueror: >>> before reparent: parent=0x41
konqueror: >>> Loop 0: reparent of 0x1e002e9 into 0x1804a1e successful
kjas: swallowing our window: KJAS Applet - Ticket number 54, window id = 31458029
konqueror: ************************** Embed 0x1e002ed into 0x1804a33 window=0x0 **********
konqueror: >>> before reparent: parent=0x41
konqueror: >>> Loop 0: reparent of 0x1e002ed into 0x1804a33 successful
kjas: swallowing our window: KJAS Applet - Ticket number 55, window id = 31458033
konqueror: ************************** Embed 0x1e002f1 into 0x1804a36 window=0x0 **********
konqueror: >>> before reparent: parent=0x41
konqueror: >>> Loop 0: reparent of 0x1e002f1 into 0x1804a36 successful
konqueror: ************************** Embed 0x1e002e9 into 0x1804a1e window=0x1e002e9 **********
konqueror: ************************** Embed 0x1e002ed into 0x1804a33 window=0x1e002ed **********
konqueror: ************************** Embed 0x1e002f1 into 0x1804a36 window=0x1e002f1 **********

which means they interleave somehow.
QXEmbed.embed(Window) is called from  KJavaAppletWidget::setWindow
(KWin::windowInfo windowAdded signal). The window itself are created by
the jvm process.
What I don't understand, how can this signal come, from within
QXEmbed.embed. This method does do something so the wm may trigger an
event, but that shouldn't be delivered right away, should/can it? and how
to avoid it?


Another thing is focus on applets (again), a java text box doesn't get any
keys delivered when it has the focus. Also, hopefully this is a hint, if
you ALT-TAB to another window, so that the java text box hides behind the
new active window, the konqueror taskbar item starts to blink a few time.


Koos



More information about the kfm-devel mailing list