--- ./wmcalc.c.00	2001-01-18 07:18:25.000000000 +0100
+++ ./wmcalc.c	2007-01-29 16:11:43.000000000 +0100
@@ -76,6 +76,7 @@
 ButtonArea button_region[NUM_BUTTONS];  /* Array of buttons */
 
 char *app_name = "wmcalc";     /* Name of app, for window management */
+char *app_class = "DockApp";   /* class_res, for window management */
 
 /****************************************************************
  *  Function:     main
@@ -225,7 +226,7 @@
   XSetWMHints( display, win, xwmhints );
 
   xclasshint.res_name  = app_name;
-  xclasshint.res_class = app_name;
+  xclasshint.res_class = app_class;
   XSetClassHint( display, win, &xclasshint );
 
   XSetWMNormalHints( display, win, &xsizehints );
