Re: FVWM: Get the current content of root window

2021-02-18 Thread Dominik Vogt
On Thu, Feb 18, 2021 at 09:31:06PM +0100, Klaus Ethgen wrote:
> Am Do den 18. Feb 2021 um 18:57 schrieb Dominik Vogt:
> > They tell the X server to do it, mostly by doing alpha blending, I
> > think.  X offers no reliable way to get any screen contents other
> > than what you can see.  Doing that on the client is also really
> > too slow.
>
> Do you know, how?

Not exactly, I was never interested in these pointless and mostly
unusable visual effects.

> From my knowledge, it only work with using another window manager than
> fvwm.

Yeah, we've never implemented stuff like that because of the
reasons above.  Looking "modern" instead of being usable and
configurable has never been in the focus of development.  There
were some experiments in applications with transparent background
before alpha blending was implemented in X, but this was
unreliable and irritating.  The only slightly helpful use of
transparency I know of is for moving windows, but if that really
is an issue, fvwm has wire frame window movement.  Doesn't look
fancy though.

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt



Re: FVWM: Get the current content of root window

2021-02-18 Thread Klaus Ethgen
Am Do den 18. Feb 2021 um 18:57 schrieb Dominik Vogt:
> They tell the X server to do it, mostly by doing alpha blending, I
> think.  X offers no reliable way to get any screen contents other
> than what you can see.  Doing that on the client is also really
> too slow.

Do you know, how?

From my knowledge, it only work with using another window manager than
fvwm.

I own nvidia graphic card and using the official driver, not the nouveau
one.

Regards
   Klaus
-- 
Klaus Ethgen   http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C


signature.asc
Description: PGP signature


Re: FVWM: Get the current content of root window

2021-02-18 Thread Dominik Vogt
On Thu, Feb 18, 2021 at 02:00:44PM +0100, Klaus Ethgen wrote:
> Hi Dominik,
>
> Am Do den 18. Feb 2021 um 12:36 schrieb Dominik Vogt:
> > On Wed, Feb 17, 2021 at 06:48:45PM +0100, Klaus Ethgen wrote:
> > > seting the background (root window) to some image is easy. But is there
> > > any way to get the image content on fvwm root window back to an image?
> >
> > As far as I know the X protocol offers no way to retrieve the
> > background pixmap of any window.
>
> Sad. How are window manager working when they provide transparency? How
> does ETerm does it? (however, it doesn't work here)

They tell the X server to do it, mostly by doing alpha blending, I
think.  X offers no reliable way to get any screen contents other
than what you can see.  Doing that on the client is also really
too slow.

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt



Re: FVWM: Get the current content of root window

2021-02-18 Thread Klaus Ethgen
Hi Dominik,

Am Do den 18. Feb 2021 um 12:36 schrieb Dominik Vogt:
> On Wed, Feb 17, 2021 at 06:48:45PM +0100, Klaus Ethgen wrote:
> > seting the background (root window) to some image is easy. But is there
> > any way to get the image content on fvwm root window back to an image?
> 
> As far as I know the X protocol offers no way to retrieve the
> background pixmap of any window.

Sad. How are window manager working when they provide transparency? How
does ETerm does it? (however, it doesn't work here)

> The best approximation is to
> remove all windows from the current desk and then make a
> screenshot.  For example, from FvwmConsole:
> 
>   all stick off
>   all movetodesk 1

Sure, but this will make more troubles as it is use for.

> *But* if there is some background image, how did it get there?
> There should be some readable image file somewhere on the system.

More or less.

Image comes from different sources. Be it webcollage (from xscreensaver)
or a script, scaling and manipulating a image bevore display.

Regards
   Klaus
-- 
Klaus Ethgen   http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C


signature.asc
Description: PGP signature


Re: FVWM: Get the current content of root window

2021-02-18 Thread Dominik Vogt
On Wed, Feb 17, 2021 at 06:48:45PM +0100, Klaus Ethgen wrote:
> seting the background (root window) to some image is easy. But is there
> any way to get the image content on fvwm root window back to an image?

As far as I know the X protocol offers no way to retrieve the
background pixmap of any window.  The best approximation is to
remove all windows from the current desk and then make a
screenshot.  For example, from FvwmConsole:

  all stick off
  all movetodesk 1

*But* if there is some background image, how did it get there?
There should be some readable image file somewhere on the system.

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt



Re: FVWM: Get the current content of root window

2021-02-18 Thread Klaus Ethgen
Hi Rainer,

Am Do den 18. Feb 2021 um 11:57 schrieb Dr Rainer Woitok:
> On Thursday, 2021-02-18 10:44:03 +0100, you wrote:
> 
> > ...
> > Both just get the current visible desktop; with all windows ans other
> > stuff that is ontop of the root window.
> 
> That's something you can do with "xwd":
> 
>$ xwd -root | convert xwd:- file.png

I already tried that but it only gives me the current desktop with all
windows above the background.

> > I want to get the content of the root window itself; the one that was
> > set by display/xsetbg or others.
> 
> Hmmm,  must be burried somewhere  in your personal X11 configuration ...
> sorry, no idea.

Well, you misunderstood. I know, where the image is coming from. But I
want to readout the image from the current state to use it, for example,
as pseudo transparency or to draw something additional on the root
image.

Regards
   Klaus
-- 
Klaus Ethgen   http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C


signature.asc
Description: PGP signature


Re: FVWM: Get the current content of root window

2021-02-18 Thread Dr Rainer Woitok
Klaus,

On Thursday, 2021-02-18 10:44:03 +0100, you wrote:

> ...
> Both just get the current visible desktop; with all windows ans other
> stuff that is ontop of the root window.

That's something you can do with "xwd":

   $ xwd -root | convert xwd:- file.png

> I want to get the content of the root window itself; the one that was
> set by display/xsetbg or others.

Hmmm,  must be burried somewhere  in your personal X11 configuration ...
sorry, no idea.

Sincerely,
  Rainer



Re: FVWM: Get the current content of root window

2021-02-18 Thread Klaus Ethgen
Hi Rainer,

Am Do den 18. Feb 2021 um 10:35 schrieb Dr Rainer Woitok:
> > seting the background (root window) to some image is easy. But is there
> > any way to get the image content on fvwm root window back to an image?
> 
> A screenshot?  Something like "xwd"?   Or am I misunderstanding what you
> want to achieve?

Both just get the current visible desktop; with all windows ans other
stuff that is ontop of the root window.

I want to get the content of the root window itself; the one that was
set by display/xsetbg or others.

Regards
   Klaus
-- 
Klaus Ethgen   http://www.ethgen.ch/
pub  4096R/4E20AF1C 2011-05-16Klaus Ethgen 
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C


signature.asc
Description: PGP signature


Re: FVWM: Get the current content of root window

2021-02-18 Thread Dr Rainer Woitok
Klaus,

On Wednesday, 2021-02-17 18:48:45 +0100, you wrote:

> ...
> seting the background (root window) to some image is easy. But is there
> any way to get the image content on fvwm root window back to an image?

A screenshot?  Something like "xwd"?   Or am I misunderstanding what you
want to achieve?

Sincerely,
  Rainer