[maemo-developers] [maemo-developers] non-gtk app integration

From: Chris Warren-Smith cwarrensmith at gmail.com
Date: Thu Jul 7 03:54:41 EEST 2005
I managed to get a non-gtk app to integrate with the
taskswitcher. Here's a screenshot:
http://www.twpo.com.au/cwarrens/n770/mandelbrot.jpeg
Non-gtk apps just needs to use _NET_ACTIVE_WINDOW
and _NET_CLIENT_LIST atoms, as well as following the 
maemo integration instructions.
Also, this code in property_notify_handler() in windowmanager.c
is a problem since gdk_get_default_root_window isn't correct
in a non-gtk app context:
    if (determine_window_type(pev->window) != NORMAL_WINDOW && 
        pev->window != GDK_WINDOW_XID(gdk_get_default_root_window()) )  {
        gdk_error_trap_pop();
        return;
    }
When the icon is pressed the wm sends _NET_ACTIVE_WINDOW
to the app. presumably the app then needs to intercept this 
message and bring its self to the top. 
Regards,
Chris

More information about the maemo-developers mailing list