[maemo-developers] Xlib on Maemo?

From: koos vriezen koos.vriezen at gmail.com
Date: Mon Jan 19 23:21:42 EET 2009
2009/1/19 Damian Frank <damianf at curl.com>:

> 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

More information about the maemo-developers mailing list