[maemo-developers] [Fremantle] Compositing is disabled in fullscreen

From: Luca Donaggio donaggio at gmail.com
Date: Thu Sep 16 17:33:11 EEST 2010
2010/9/16 Hämäläinen Kimmo <kimmo.hamalainen at nokia.com>

> On Fri, 2010-09-03 at 16:24 +0200, ext Luca Donaggio wrote:
> > I know that compositing is disabled in fullscreen, as some composited
> > widget (for example the fullscreen button in hildon-extras) are shown
> > with a black background instead of a semi-transparent one.
> > But I noticed one thing: if a hildon-banner appears in fullscreen when
> > one of such widgets is on the screen, the window manager turns
> > compositing on (the translucid background of the other widget is
> > shown), just to turn it off when the banner disappears.
> >
> > Is there a way to trick the window manager to act the same for
> > arbitrary widgets as for hildon-banners?
>
> Try explicitly preventing switching the compositing off by setting this
> window property (with value 0) to your application window:
>
> static void set_compositing (Display *display, Window xwindow)
> {
>        Atom atom;
>        int zero = 0;
>        atom = XInternAtom (display, "_HILDON_NON_COMPOSITED_WINDOW",
> False);
>        XChangeProperty (display,
>                       xwindow,
>                       atom,
>                       XA_INTEGER, 32, PropModeReplace,
>                       (unsigned char *) &zero, 1);
> }
>
> -Kimmo
>
> >
> > --
> > Luca Donaggio
>
>
That did the trick!

Thanks for your help, Kimmo.

-- 
Luca Donaggio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.maemo.org/pipermail/maemo-developers/attachments/20100916/1d8cbb9c/attachment.htm>
More information about the maemo-developers mailing list