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) = @_;
                $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 [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to