diff options
author | marha <marha@users.sourceforge.net> | 2011-02-03 14:55:25 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-02-03 14:55:25 +0000 |
commit | 81d327e65a2081a5bb48f974d9101ed9f85767a6 (patch) | |
tree | c310d5b5bd07d8c2a66ff99f8be503a9e85a2e19 /xorg-server/hw/xwin/wincreatewnd.c | |
parent | 46fbac6f1b19416ee1dbca883f0d09d9fd75d1eb (diff) | |
download | vcxsrv-81d327e65a2081a5bb48f974d9101ed9f85767a6.tar.gz vcxsrv-81d327e65a2081a5bb48f974d9101ed9f85767a6.tar.bz2 vcxsrv-81d327e65a2081a5bb48f974d9101ed9f85767a6.zip |
xdmcp: add host connected to in the title of the main window
Diffstat (limited to 'xorg-server/hw/xwin/wincreatewnd.c')
-rw-r--r-- | xorg-server/hw/xwin/wincreatewnd.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/xorg-server/hw/xwin/wincreatewnd.c b/xorg-server/hw/xwin/wincreatewnd.c index 91dfb4abf..9931abe75 100644 --- a/xorg-server/hw/xwin/wincreatewnd.c +++ b/xorg-server/hw/xwin/wincreatewnd.c @@ -65,6 +65,8 @@ winCreateBoundingWindowFullScreen (ScreenPtr pScreen) HWND *phwnd = &pScreenPriv->hwndScreen; WNDCLASSEX wc; char szTitle[256]; + char HostName[256]; + gethostname(HostName,256); winDebug ("winCreateBoundingWindowFullScreen\n"); @@ -91,12 +93,11 @@ winCreateBoundingWindowFullScreen (ScreenPtr pScreen) sizeof (szTitle), WINDOW_TITLE_XDMCP, g_pszQueryHost, + HostName, display, (int) pScreenInfo->dwScreen); else { - char HostName[256]; - gethostname(HostName,256); snprintf (szTitle, sizeof (szTitle), WINDOW_TITLE, @@ -163,6 +164,9 @@ winCreateBoundingWindowWindowed (ScreenPtr pScreen) DWORD dwWindowStyle; BOOL fForceShowWindow = FALSE; char szTitle[256]; + char HostName[256]; + + gethostname(HostName,256); winDebug ("winCreateBoundingWindowWindowed - User w: %d h: %d\n", (int) pScreenInfo->dwUserWidth, (int) pScreenInfo->dwUserHeight); @@ -332,12 +336,11 @@ winCreateBoundingWindowWindowed (ScreenPtr pScreen) sizeof (szTitle), WINDOW_TITLE_XDMCP, g_pszQueryHost, + HostName, display, (int) pScreenInfo->dwScreen); else { - char HostName[256]; - gethostname(HostName,256); snprintf (szTitle, sizeof (szTitle), WINDOW_TITLE, |