xwem-devel
[Top] [All Lists]

Re: Displaying an image on the root window

From: Zajcev Evgeny <zevlg@xxxxxxxxx>
Subject: Re: Displaying an image on the root window
Date: Fri, 15 Apr 2005 13:14:58 +0400
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux)
Steve Youngs <steve@xxxxxxxx> writes:

> Yo Evgeny!
>
> I've been trying to catch you on IRC, but our schedules seem to be out
> of sync. :-)
>
> I'm looking for an XWEM answer to displaying an image on the root
> window.  What I want is the image to be resized to fit exactly inside
> an unsplit XWEM frame.  In other words, if I have an empty transparent
> XWEM frame I should be able to see 100% of the image, and the image's
> borders should be flush with the XWEM frame's borders.
>
> Do you see what I'm getting at?

Not quite ..  i did not understood this: "I should be able to see 100%
of the image, and the image's borders should be flush with the XWEM
frame's borders."

>
> Maybe what I need is to set up a background image for the frame.  But
> doing that I'd have to set it for _every_ frame.  Just chucking the
> image on the root window with the right size and position means I only
> need to do it once. :-)

There is undocumented(hmm, is there documented anything at all? :)
feature - RelativeParent background for the xwem frames.  Parent
window for the xwem frames is normally(excluding embedded frames) is
root window.  So if xwem frame uses RelativeParent background mode it
inherits background of root window.  To start using it do something
like:

   1) Install some background into root window (display -window root)

   2) Remove 'background property from xwem-frame-default-properties
     (plist-remprop)

   3) Create new xwem frame

As you can also note, embedded frames with RelativePraent background
that are embedded to the frames with RelativePraent background also
gets root background, because of chained parent inheritance ..

Steve, is it possible to get visually (e.g.  screenshot) of what you
actually want to do?

Thanks!

-- 
lg

<Prev in Thread] Current Thread [Next in Thread>