diff options
author | George Lebl <jirka@5z.com> | 2001-10-20 20:45:11 +0000 |
---|---|---|
committer | George Lebl <jirka@src.gnome.org> | 2001-10-20 20:45:11 +0000 |
commit | e8061c71471468006f337729d8c996a912343a43 (patch) | |
tree | 92c33b3cea783d7b9aec0d3107c54817117db2f2 /utils | |
parent | 7cfe17e891fb34a3a875dc52bd1dc038b5259b35 (diff) | |
download | gdm-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.c | 4 |
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); |