Re: FVWM: Get the current content of root window

Klaus Ethgen <[email protected]> Thu, 18 Feb 2021 14:00:44 +0100
Newsgroups gmane.comp.window-managers.fvwm
Message-ID <YC5k/[email protected]>
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-16            Klaus Ethgen <[email protected]>
Fingerprint: 85D4 CA42 952C 949B 1753  62B3 79D0 B06F 4E20 AF1C
signature.asc (application/pgp-signature, 688 B)
-----BEGIN PGP SIGNATURE-----
Comment: Charset: ISO-8859-1

iQGzBAABCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAmAuZPUACgkQpnwKsYAZ
9qydcwv/W8QDd+7yVsgLV1x+ElMzUh2vUaJO+uQLc1rDvYxL3YN/G6zEUiWis4iU
dMXOmcim7069YKXLlEP7GmDdpiOv9ZRZceIrqKvfmyc7ZG45uj84gIns8xEXHp56
+RrJIeSJs/OafDAAQLeCmOS08QjJvGrQkLsGYwpxY5ujBLuNjQk6PVVo7QZa9et1
jjlSAdnkyhdzcBePx9u6v8WKTt4E5lDncHstzWPx/Gtw4sdQ91ShgxBVgluhx3ma
6Oa4AG1cscRtY4KAXH6fnIs6bbbHR6WSUS03XPUboFRVcmn2wHvwekdbgQAEFbS6
NfJOGOEMrsyzEvlrYfO7hgV8MMGUrE1yA9x2WrdXvFfyBYZHKLOpxZp6kNqN20uM
HISzufzH1dtRiAQ8QQeCzqzWUG89PeDgleYALdDi7hnMP0X4f6kvM0J+DxbvDgeR
rXY7oh/s8mBYOQHmAz9gnQCsI7EZQlciFu/6FWe0k5vE6YbLbSNAaDKHHz29sNtu
HWIlt/IS
=K3cI
-----END PGP SIGNATURE-----