dakkar has asked for the wisdom of the Perl Monks concerning the following question:

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?

Replies are listed 'Best First'.
Re: Perl/Tk and foreing window events
by strredwolf (Chaplain) on Oct 31, 2001 at 09:49 UTC
    You'll need to be the window manager. Check out PerlWM off of http://www.xwinman.org.

    --
    $Stalag99{"URL"}="http://stalag99.keenspace.com";