Article 5DSFR How Do I Draw To Part Of The Root Window, Leaving The Rest Of It Unchanged?

How Do I Draw To Part Of The Root Window, Leaving The Rest Of It Unchanged?

by
shachter
from LinuxQuestions.org on (#5DSFR)
Esteemed Colleagues:

How do I draw an image to part of the root window, leaving the rest of the root window unchanged? Yes, I know I could write a program that does that, but there should be an existing program capable of doing it.

The scenario is a computer connected to two monitors, and xrandr has placed one to the right of the other. In the general case the two monitors will have different sizes, let us say $H1 and $W1 are the dimensions of the first monitor, and $H2 and $W2 are the dimensions of the second monitor. I want to draw an image to the 2nd monitor's root window without changing the 1st monitor's root window. The command

display -window root -geometry +${W1}+0 -resize ${W2}x${H2} bg.png

will draw the image onto the 2nd monitor's root window, but it will replace the 1st monitor's root window with solid black. I want to leave the 1st monitor's root window unchanged. The solution does not have to use the display program; it can be xsetroot or xv or any standard program. I would also be satisfied with a Perl/Tk script.
Thank you in advance for any and all replies.

Jay F. Shachter

jay at m5 dot chicago dot il dot uslatest?d=yIl2AUoC8zA latest?i=pgzxKZqrl04:oOXjUv4M94s:F7zBnMy latest?i=pgzxKZqrl04:oOXjUv4M94s:V_sGLiP latest?d=qj6IDK7rITs latest?i=pgzxKZqrl04:oOXjUv4M94s:gIN9vFwpgzxKZqrl04
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments