When updating X11 window title, update WM_ICON_NAME and WM_CLASS as
well.

Tested in ThinLinc since 2008-01-10. 



git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3550 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/tx/TXWindow.cxx b/unix/tx/TXWindow.cxx
index 4bab2d9..2b535df 100644
--- a/unix/tx/TXWindow.cxx
+++ b/unix/tx/TXWindow.cxx
@@ -288,7 +288,14 @@
 
 void TXWindow::setName(const char* name)
 {
-    XStoreName(dpy, win(), name);
+  XClassHint classHint;
+  XGetClassHint(dpy, win(), &classHint);
+  XFree(classHint.res_name);
+  classHint.res_name = (char*)name;
+  XSetClassHint(dpy, win(), &classHint);
+  XFree(classHint.res_class);
+  XStoreName(dpy, win(), name);
+  XSetIconName(dpy, win(), name);    
 }
 
 void TXWindow::setMaxSize(int w, int h)