[maemo-developers] Displaying the information of the MMC card and the phone memory

From: Kimmo Hämäläinen kimmo.hamalainen at nokia.com
Date: Wed May 12 15:43:57 EEST 2010
Hi,

On Wed, 2010-05-12 at 07:39 +0200, ext Pallavi Kandhare wrote:
..


> 2. On mobile certain aplications are running at a time. (ed. clock,
calender etc). How 
> can i find out and list all these applications.
  


There is nothing very convenient for this but you can do it using the
same API as the window manager (hildon-desktop) uses: XQueryTree and
reading some window properties with XGetWindowProperty.  You could get a
some kind of list by taking top-level (== parent is the root window)
windows that have _NET_WM_WINDOW_TYPE property set to
_NET_WM_WINDOW_TYPE_NORMAL.

I'm attaching the source code of a small utility that uses XQueryTree,
you could use it as a starting point.

-Kimmo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wintree.c
Type: text/x-csrc
Size: 9052 bytes
Desc: not available
URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100512/83a7e499/attachment.c>
More information about the maemo-developers mailing list