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/wintrayicon.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/wintrayicon.c')
-rw-r--r-- | xorg-server/hw/xwin/wintrayicon.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/xorg-server/hw/xwin/wintrayicon.c b/xorg-server/hw/xwin/wintrayicon.c index 52c7de3dc..01d53bc44 100644 --- a/xorg-server/hw/xwin/wintrayicon.c +++ b/xorg-server/hw/xwin/wintrayicon.c @@ -63,13 +63,27 @@ winInitNotifyIcon (winPrivScreenPtr pScreenPriv, Bool Modify) gethostname(HostName,256); /* Set display and screen-specific tooltip text */ - snprintf (nid.szTip, + if (g_pszQueryHost) + { + snprintf (nid.szTip, sizeof (nid.szTip), - PROJECT_NAME " Server - %s:%s.%d - %d clients", + "%s - %s:%s.%d - %d clients", + g_pszQueryHost, HostName, display, (int) pScreenInfo->dwScreen, pScreenPriv->iConnectedClients); + } + else + { + snprintf (nid.szTip, + sizeof (nid.szTip), + "%s:%s.%d - %d clients", + HostName, + display, + (int) pScreenInfo->dwScreen, + pScreenPriv->iConnectedClients); + } /* Add the tray icon */ if (!Shell_NotifyIcon ((Modify) ? NIM_MODIFY : NIM_ADD, &nid)) |