From df8005619f4c1ffd28b1c28c6a11ecb6e5e9efbe Mon Sep 17 00:00:00 2001 From: Jason Kasper Date: Mon, 27 May 2002 19:14:50 +0000 Subject: [PATCH] fix for multi-head DISPLAY problem --- ChangeLog | 5 +++++ src/main.cc | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 72eef29..244cf93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ version 0.8.5 -- + - fix multi-head bug in main.cc. We now setenv("DISPLAY"...) so that + applications launched will be launched on the correct display. Thanks to + Greg Gilbert for the patch! + [vanRijn] + - fix bug in main.cc (| rather than ||). Thanks to Roman Neuhauser! [vanRijn] diff --git a/src/main.cc b/src/main.cc index bfcf726..c278ab2 100644 --- a/src/main.cc +++ b/src/main.cc @@ -71,6 +71,10 @@ int main(int argc, char **argv) exit(2); }; options.display_name = argv[i]; + + // Applications we exec will need the proper display + setenv("DISPLAY", options.display_name,true); + } else if ((!strcmp(argv[i], "-config")) | (!strcmp(argv[i], "-c"))) { if (++i == argc) { -- 2.11.4.GIT