From e21ac1b1d32a5ec0903b920b76d44943a09fb597 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20=C3=85strand?= Date: Tue, 27 Jan 2009 15:03:20 +0000 Subject: [PATCH] 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 --- win/vncviewer/DesktopWindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5