summaryrefslogtreecommitdiff
path: root/zwgc/zephyr.c
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1998-05-24 00:48:03 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1998-05-24 00:48:03 +0000
commit83bd77d41e39def0ffb43560a38806fe4c010f6f (patch)
tree95fbd0f228689ef4d06ee4dbf293eaff79278b18 /zwgc/zephyr.c
parent45547d190ead32f7bc19845a90636957734423e1 (diff)
Add a -loc flag to specify alternative auxiliary location information
instead of the display name or tty.
Diffstat (limited to 'zwgc/zephyr.c')
-rw-r--r--zwgc/zephyr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/zwgc/zephyr.c b/zwgc/zephyr.c
index ded5e01..d15091b 100644
--- a/zwgc/zephyr.c
+++ b/zwgc/zephyr.c
@@ -35,6 +35,7 @@ static const char rcsid_zephyr_c[] = "$Id$";
#include "subscriptions.h"
#include "variables.h"
#include "pointer.h"
+#include "main.h"
#ifndef X_DISPLAY_MISSING
#include "X_driver.h"
#endif
@@ -141,9 +142,11 @@ void zephyr_init(notice_handler)
}
/* Set hostname and tty for locations. If we support X, use the
- * display string for the tty name. */
+ * display string for the default tty name. */
+ if (location_override)
+ tty = location_override;
#ifndef X_DISPLAY_MISSING
- if (dpy)
+ else if (dpy)
tty = DisplayString(dpy);
#endif
error_code = ZInitLocationInfo(NULL, tty);