]> source.dussan.org Git - tigervnc.git/commitdiff
Like r3552/r3553, but for Windows viewer: Add TightVNC to window title.
authorPeter Åstrand <astrand@cendio.se>
Tue, 27 Jan 2009 15:03:20 +0000 (15:03 +0000)
committerPeter Åstrand <astrand@cendio.se>
Tue, 27 Jan 2009 15:03:20 +0000 (15:03 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3580 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/vncviewer/DesktopWindow.cxx

index 2b1ca3987d12129f174e3344ea736cdea0d07a4f..eac2b6fd6c31f6bfd23e0bd95651fdef4d8175ce 100644 (file)
@@ -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;
 }