summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@5z.com>2001-10-20 20:45:11 +0000
committerGeorge Lebl <jirka@src.gnome.org>2001-10-20 20:45:11 +0000
commite8061c71471468006f337729d8c996a912343a43 (patch)
tree92c33b3cea783d7b9aec0d3107c54817117db2f2 /utils
parent7cfe17e891fb34a3a875dc52bd1dc038b5259b35 (diff)
downloadgdm-e8061c71471468006f337729d8c996a912343a43.tar.gz
set VT_NUMBER env var
Sat Oct 20 13:31:07 2001 George Lebl <jirka@5z.com> * utils/gdmopen.c: set VT_NUMBER env var * gui/gdmwm.c: Fix a race for MapNotify so that newly created windows are always focused
Diffstat (limited to 'utils')
-rw-r--r--utils/gdmopen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/gdmopen.c b/utils/gdmopen.c
index d5c8574d..65a2b70c 100644
--- a/utils/gdmopen.c
+++ b/utils/gdmopen.c
@@ -130,6 +130,10 @@ main (int argc, char *argv[])
child_pid = fork();
if (child_pid == 0) {
+ char VT_NUMBER[256];
+
+ snprintf (VT_NUMBER, sizeof (VT_NUMBER), "VT_NUMBER=%d", vtno);
+ putenv (VT_NUMBER);
signal (SIGTERM, SIG_DFL);
signal (SIGINT, SIG_DFL);