aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xwin/wintrayicon.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-02-03 14:55:25 +0000
committermarha <marha@users.sourceforge.net>2011-02-03 14:55:25 +0000
commit81d327e65a2081a5bb48f974d9101ed9f85767a6 (patch)
treec310d5b5bd07d8c2a66ff99f8be503a9e85a2e19 /xorg-server/hw/xwin/wintrayicon.c
parent46fbac6f1b19416ee1dbca883f0d09d9fd75d1eb (diff)
downloadvcxsrv-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.c18
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))