Proper GNOME shell integration requires that WM_CLASS
of window is set.



git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4676 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx
index 1efe1d7..079e7ad 100644
--- a/vncviewer/vncviewer.cxx
+++ b/vncviewer/vncviewer.cxx
@@ -117,6 +117,10 @@
   Fl::scheme("plastic");
 #endif
 
+  // Proper Gnome Shell integration requires that we set a sensible
+  // WM_CLASS for the window.
+  Fl_Window::default_xclass("vncviewer");
+
   // This makes the "icon" in dialogs rounded, which fits better
   // with the above schemes.
   fl_message_icon()->box(FL_UP_BOX);