On 8/13/07, David Chisnall <[EMAIL PROTECTED]> wrote:
> On 13 Aug 2007, at 17:41, Yen-Ju Chen wrote:
>
> >   Actually, the pixmap you get in Composite is unscaled background
> > provided by AZBackground.
> >   (See root_tile() in Composite).
> >   So you only need to query the size of that pixmap, scale it
> > accordingly.
> >   Then we have the scaled background image.
> >   You probably can get the size of pixmap by XGetGeometry().
> >   http://tronche.com/gui/x/xlib/window-information/XGetGeometry.html
>
> Sorry, I don't think I explained myself well.  Composite, when it
> does the compositing of windows, can apply a scaling factor (this is
> how the experimental mini-window thing I have going works).
>
> If AZBackground can provide a Picture to Composite, then it will be
> able to scale it correctly and then draw it on the root window before
> it draws all of the other windows.  It can't use the root window as
> the source, since it's too small.

  The pixmap you get from _XROOTPMAP_ID
  is actually 2560 * height, not the screen size.
  So as long as you can convert that Pixmap into Picture,
  then you have it.
  You are not using root window as source.

  AZBackground does two things for background:
  1) it draw on root window.
  2) it put the original image into _XROOTPMAP_ID.

  (1) is useless when Composite is used.
  So all you need is (2), which is a image converted from TIFF to
Pixmap by AZBackground already.

  Yen-Ju

>
> David
>
> _______________________________________________
> Etoile-dev mailing list
> [email protected]
> https://mail.gna.org/listinfo/etoile-dev
>

_______________________________________________
Etoile-dev mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-dev

Reply via email to