When my module (FvwmSaveWindow) is called from a menu or button (by the
use of SendToModule), I do this in my module-code:
$module->send("Send_WindowList");
This causes an event-handler being called:
$module->addHandler(M_WINDOW_NAME, sub {
my ($module, $event) = _at__;
...
});
My problem is that I would like to know some data (mainly position and
size) about the window which was selected when the
"Send_WindowList"-command was issued. I can't seem to find a reasonable
way to get this in the handler.
I tried to listen for M_CONFIGURE_WINDOW-event, but then I might get
another window's data since the focus may change during the time between
tha handler is called and the M_WINDOW_NAME-handler is executed.
I could maybe call the module with the window-id explicitly in the config:
SendToModule FvwmSaveWindow $winId "save"
(or however it would look like?) but I would rather do it in the
module-code.
Hmm, hope you can figure out what I mean by all this.. guess my english
isn't so good, or maybe I'm a bit confused and tired, well well..
/Tomas
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Oct 22 2003 - 08:56:22 BST