Hi, Can someone point me to code that shows how to generate synthetic events
for this scenario
(RH Linux7.3 : mozilla-1.7.12 : gtk1.2, using example : TestGtkEmbed)

Four non overlapping mozilla windows displayed on screen without chrome & no
mouse/keyboard. Events can come in from a host server or other methods..
I will need to send the x, y coordinates as mouse events(?) to any one of
the windows.

I tried sending a gdk mouse event (GdkEvent), but the widget
(mozEmbed->window) I sent the event to was not a superwin, so it didn't
work. Looking at the X tree (XQueryTree) there is a window hierarchy down
from mozEmbed & the lowermost window is what eats the event on a mouse
click. I don't know how to get to that lowest window.

But , instead of that..

I see nsMouseEvent being used in the mozilla code to send a synthetic event,
but i'm not sure where in my example code, to send the event to... i.e
should i send it  nsWidget, nsViewManager, nsWindow etc..etc
Which would be the simplest, cheapest way to accomplish this? code would be
much appreciated.

Thanks!


_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to