Subject: FVWM: FvwmBacker only does Execs

From: [email-masked]
Date: Thu, 24 Jul 1997 14:31:06 +0100 (BST)

FvwmBacker in 2.0.45 only does Unix commands.  The following micro-patch makes
it able to invoke arbitrary fvwm commands (including functions):

*** FvwmBacker.c.orig   Thu Jul 24 12:30:39 1997
--- FvwmBacker.c        Thu Jul 24 12:34:41 1997
***************
*** 248,254 ****
        }
        else if(commands[body[0]].cmdStr != NULL)
        {
!         system(commands[body[0]].cmdStr);
        }
      }
  }
--- 248,254 ----
        }
        else if(commands[body[0]].cmdStr != NULL)
        {
!         SendFvwmPipe(commands[body[0]].cmdStr, (unsigned long)0);
        }
      }
  }

As you can see the change is only one line, the code to send commands to fvwm 
was already in there!  The man page should be changed too but that is left as an 
exercise for the reader!  (you need to add Exec in front of any old commands).

Does anyone have any objections to this.  I find it useful as I can now make the 
window border colours change on different desks.

Cheers,
Timbo.
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [email-masked].
To report problems, send mail to [email-masked].