FvwmM4: predefined macro DISPLAY

2006-07-24 Thread Peter Daum
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.org2006-07-23 11:33:57.0 +0200
+++ FvwmM4.c2006-07-23 11:32:07.0 +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)))


FvwmM4: predefined macro DISPLAY

2006-07-24 Thread Peter Daum
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.org2006-07-23 11:33:57.0 +0200
+++ FvwmM4.c2006-07-23 11:32:07.0 +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)))