Is there any way to receive events from non-Tk windows in Perl/Tk?

More precisely: I was thinking of writing an X pager (the thing that displays where your windows are) for GNOME-compliant window managers (since I do not want/need to run the gnome-panel just for the pager), and I'd like to use Perl (I could do it in C or C++, but it would not be as pleasant). To do so, I need to be able to:

  1. receive Property XEvents from the root window
  2. receive Configure, Property, Reparent, Map/Unmap, Circulate, Destroy, FocusIn/Out XEvents from ALL managed windows
  3. display the info so acquired in a scaled-down representation of the workspace and let the user interact with it
  4. send various events to other windows to move/resize/etc. them

Task 3 is the easiest (Tk::Canvas), but how do I get over the other tasks?


In reply to Perl/Tk and foreing window events by dakkar

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.