Xming: Correct the way display and screen number is reported in window titles and tooltips

Correct the tooltip text for the toolbar X icon to be strictly correct, 'display-number:screen' should be ':display-number.screen'.
Also for the default window title.
Adjust the style of the Windows title in XDMCP mode from 'Xming - hostname' to 'hostname:display-number.screen'.

Copyright (C) Colin Harrison 2005-2008
http://www.straightrunning.com/XmingNotes/
http://sourceforge.net/projects/xming/

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
Colin Harrison 2008-11-02 20:46:38 +00:00 • committed by Jon TURNEY
commit 8d82d806ee
3 changed files with 9 additions and 5 deletions

View file

@ -59,7 +59,7 @@ winInitNotifyIcon (winPrivScreenPtr pScreenPriv)
/* Set display and screen-specific tooltip text */
snprintf (nid.szTip,
sizeof (nid.szTip),
PROJECT_NAME " Server - %s:%d",
PROJECT_NAME " Server:%s.%d",
display,
(int) pScreenInfo->dwScreen);