diff options
author | Greg Hudson <ghudson@mit.edu> | 1998-05-24 00:48:03 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 1998-05-24 00:48:03 +0000 |
commit | 83bd77d41e39def0ffb43560a38806fe4c010f6f (patch) | |
tree | 95fbd0f228689ef4d06ee4dbf293eaff79278b18 /zwgc/zephyr.c | |
parent | 45547d190ead32f7bc19845a90636957734423e1 (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.c | 7 |
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); |