Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Perl/Tk and foreing window events

by dakkar (Hermit)
on Nov 27, 2000 at 15:02 UTC ( [id://43475]=perlquestion: print w/replies, xml ) Need Help??

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";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://43475]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-24 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found