2009/1/19 Damian Frank <[email protected]>:
> I checked out GtkSocket/Plug just now. It seems like an interesting idea,
> but unless I'm mistaken, both sides still need to be using GTK since
> GtkPlug is just an implementation of GtkWindow. So I don't think that
> removes the underlying problem, the worst of which is probably event
> handling.
No, GtkSocket can embed plain XWindows too. However why playing the
WM, I think I would try to take a very simple Hildon app based on
some demo application and then take the X11 Window to reparent your
existing application. With
static GdkFilterReturn filterfunc (GdkXEvent *xe, GdkEvent *e,
gpointer data) {
XEvent *event = (XEvent *) xe;
...
}
gdk_window_add_filter (NULL, (GdkFilterFunc) filterfunc, data );
you should get all XEvents you have selected (at least that is what I suspect).
Br.
Koos
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers