Re: FVWM: FVWM modules

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 14 Aug 2002 13:39:56 +0000

On 14 Aug 2002 15:08:49 +0200, Rasmus Stenfalk wrote:
>
> Anyone know where I can find toturials on writing FVWM modules?

See the developer documentation at fvwm.org.
If you use 2.5.2+ run "fvwm-perllib man" for documentation on creating
modules in perl.

> I'd like to write my own focus module. (A module that switches focus
> *and* raises windows following the mouse pointer)

I think you need FvwmAuto if you use SloppyFocus/MouseFocus.

Or if you use ClickToFocus and want an autoraising when clicking on a
window to gain a focus there are corresponding style options.

On the other hand writing a small focus module should be not harder than
10 lines of perl. Here is a small FvwmAuto replacement:

        #!/usr/bin/perl -w
        use lib `fvwm-perllib dir`;
        use FVWM::Module;

        my $module = new FVWM::Module(Mask => M_FOCUS_CHANGE);
        $module->addHandler(M_FOCUS_CHANGE, sub {
                my ($self, $type, $winId) = _at__;
                $self->send("Raise", $winId);
        });
        $module->eventLoop;

> Sorry if this is a stupid question, but I haven't had the time to check out
> the site yet.

Regards,
Mikhael.
--
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 Aug 14 2002 - 08:41:16 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST