aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2009-01-27 15:03:20 +0000
committerPeter Åstrand <astrand@cendio.se>2009-01-27 15:03:20 +0000
commite21ac1b1d32a5ec0903b920b76d44943a09fb597 (patch)
tree5c5ba46952008561596057bada295d47558e625c
parent7f0189df50c440f8eb8b85e8783a5eae3489fac0 (diff)
downloadtigervnc-e21ac1b1d32a5ec0903b920b76d44943a09fb597.tar.gz
tigervnc-e21ac1b1d32a5ec0903b920b76d44943a09fb597.zip
Like r3552/r3553, but for Windows viewer: Add TightVNC to window title.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3580 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--win/vncviewer/DesktopWindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/vncviewer/DesktopWindow.cxx b/win/vncviewer/DesktopWindow.cxx
index 2b1ca398..eac2b6fd 100644
--- a/win/vncviewer/DesktopWindow.cxx
+++ b/win/vncviewer/DesktopWindow.cxx
@@ -1268,7 +1268,7 @@ DesktopWindow::setName(const char* name) {
strCopy(desktopName, name, sizeof(desktopName));
}
char *newTitle = new char[strlen(desktopName)+20];
- sprintf(newTitle, "%s @ %i%%", desktopName, getDesktopScale());
+ sprintf(newTitle, "TightVNC: %.240s @ %i%%", desktopName, getDesktopScale());
SetWindowText(handle, TStr(newTitle));
delete [] newTitle;
}