[maemo-developers] Live Backgrounds in PR1.2 hildon-desktop

From: Kimmo Hämäläinen kimmo.hamalainen at nokia.com
Date: Tue Jun 1 12:39:51 EEST 2010
On Tue, 2010-06-01 at 11:32 +0200, ext Sivan Greenberg wrote:
> 2010/6/1 Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>:
> > I think the Control Panel plugin API is C/GTK only since the plugin runs
> > inside the Control Panel application.  You'd need to be somehow familiar
> > with X11 programming, since it would involve finding out the current
> > live backgrounds and offer UI for manipulating the window property on
> 
> So essentially find the XWindow ID and set transparency attribute on it?

No, transparency property is not used, the window itself needs to be
transparent (i.e. 32-bit window with alpha channel). You'd need to use
XQueryTree() (check e.g. the xsnow patch -- it finds the applet windows)
and find windows with _HILDON_LIVE_DESKTOP_BACKGROUND > 0 window
property on them, and then provide UI for manipulating the property, and
perhaps even killing the processes (when _NET_WM_PID is provided by the
window). See test-live-bg.c for example code on how to set this
property.

-Kimmo

> 
> Sivan

More information about the maemo-developers mailing list