I don't believe X11 provides any means for Clients to ask the server for any information about any window

Sure it does. Ever used xmag? Or a graphics editor like xpaint that allows you to pick the colour of any pixel on the screen? xli or xloadimage, that can inspect or share colour palettes already in use (important in the time X-servers often used 256 colour palettes)? fvwm2 has no problem using partially transparent icons; and if I view a partially transparent gif with display (which comes with ImageMagick), I get to see what's underneath (and even the focus goes to the underlaying application). And you may be familiar with xscreensaver which has a few screensavers that use the current display.

You can say a lot of bad things about X, that it's slow, that it uses a lot of memory, that it's insecure, and that it's hard to program with. But the one reason that it's still going strong is that anything is possible. And that includes transparency, and inspecting the pixels of other applications. But I'm not an X-windows programmer (it's been more than 10 years since I last wrote an X-windows program (in C, pure, raw X-windows, no widget sets used)), so how it's done, I do not know.

Abigail


In reply to Re: Accessing the Root Window in Perl by Abigail-II
in thread Accessing the Root Window in Perl by itodd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.