From 7397e255c2e82618ab55ef2c81636c8e688b1225 Mon Sep 17 00:00:00 2001 From: marha Date: Sat, 2 Jan 2010 15:39:45 +0000 Subject: Always use screen 0 to start windows clients. --- xorg-server/hw/xwin/winprefs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xorg-server/hw/xwin/winprefs.c b/xorg-server/hw/xwin/winprefs.c index 4333d5fd4..2472ea5aa 100644 --- a/xorg-server/hw/xwin/winprefs.c +++ b/xorg-server/hw/xwin/winprefs.c @@ -783,8 +783,8 @@ LoadPreferences (void) } /* Setup a DISPLAY environment variable, need to allocate on heap */ - /* because putenv doesn't copy the argument... */ - winGetDisplayName(szDisplay, atoi(display)); + /* because putenv doesn't copy the argument... Always use screen 0 */ + winGetDisplayName(szDisplay, 0); szEnvDisplay = (char *)(malloc(strlen(szDisplay)+strlen("DISPLAY=")+1)); if (szEnvDisplay) { -- cgit v1.2.3