set WM_CLASS omg icccm pls
authorMikael Magnusson <mikachu@comhem.se>
Mon, 28 May 2007 03:10:51 +0000 (03:10 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Mon, 28 May 2007 03:10:51 +0000 (03:10 +0000)
rspanel.c

index 8037d46..ac4f5a6 100644 (file)
--- a/rspanel.c
+++ b/rspanel.c
@@ -420,6 +420,7 @@ Window gui_create_taskbar(void)
     XSizeHints size_hints;
     XWMHints wmhints;
     XSetWindowAttributes att;
+    XClassHint xclhints;
 
     att.background_pixel = palette[0];
     att.event_mask = ButtonPressMask | ExposureMask;
@@ -470,6 +471,10 @@ Window gui_create_taskbar(void)
     XChangeProperty(dd, win, XA_WM_HINTS, XA_WM_HINTS, 32, PropModeReplace,
                     (unsigned char *)&wmhints, sizeof(XWMHints) / 4);
 
+    xclhints.res_name = "rspanel";
+    xclhints.res_class = "RSPanel";
+    XSetClassHint(dd, win, &xclhints);
+
     XMapWindow(dd, win);
 
 #ifdef XFT