Attached is a  small fix for fvwmtabs to handle the new CreateNewTab
command in fvwmrc. With the following new syntax

# Create a new Tabber.
DestroyFunc NewTabber
AddToFunc NewTabber I SendToModule FvwmTabs createNewTabber $0

Calling the function without the optional parameter sends a # instead of
nothing (at least on my system) which causes doesn't allow opening more
then one tabber.

There other fix is an extra space that I don't think should be there,
but I could be wrong.
--- /usr/lib/fvwm/2.5.11/FvwmTabs       2004-07-19 23:32:28.000000000 +0300
+++ tmp/fvwmtabs/FvwmTabs-v3.3/FvwmTabs 2004-07-15 16:11:19.000000000 +0300
@@ -406,7 +406,7 @@
 {
        my $tId = shift();
 
-       if (!defined $tId or $tId eq '#')
+       if (!defined $tId)
        {
                for ($tId = 0; ; $tId++)
                {
@@ -424,7 +424,7 @@
                return;
        }
 
-       my $title = $fvwm->name() . "[$tId]";
+       my $title = $fvwm->name() . " [$tId]";
        my $tl = $TOP->Toplevel(Name => $fvwm->name(),
                                                        -class => $fvwm->name(),
                                                        -title => $title);

Reply via email to