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:
- receive Property XEvents from the root window
- receive Configure, Property, Reparent, Map/Unmap, Circulate, Destroy, FocusIn/Out XEvents from ALL managed windows
- display the info so acquired in a scaled-down representation of the workspace and let the user interact with it
- 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?