Imho, it would be plausible and useful to have the X display available as a predefined macro in FvwmM4. Plus: the patch is really short ;-)
Regards, Peter Daum
--- FvwmM4.c.org 2006-07-23 11:33:57.000000000 +0200 +++ FvwmM4.c 2006-07-23 11:32:07.000000000 +0200 @@ -373,6 +373,7 @@ hostname = gethostbyname(client); strcpy(server, XDisplayName(host)); + fputs(MkDef("DISPLAY", server), tmpf); colon = strchr(server, ':'); if (colon != NULL) *colon = '\0'; if ((server[0] == '\0') || (!strcmp(server, "unix")))