]> Dogcows Code - chaz/openbox/commitdiff
Add a WM_CLASS to the skiptaskbar test
authorDana Jansens <danakj@orodu.net>
Wed, 9 Dec 2009 16:02:44 +0000 (11:02 -0500)
committerDana Jansens <danakj@orodu.net>
Wed, 9 Dec 2009 16:02:44 +0000 (11:02 -0500)
tests/skiptaskbar.c

index 1b2461603f61b3487420eae535c580e76e8683a3..bb585c6eafacef1cfa9f1bc6f3cd76d7f1e287a1 100644 (file)
@@ -26,6 +26,7 @@ int main () {
   Window     win;
   XEvent     report;
   Atom       state, skip;
+  XClassHint classhint;
   int        x=10,y=10,h=400,w=400;
 
   display = XOpenDisplay(NULL);
@@ -47,6 +48,10 @@ int main () {
   XChangeProperty(display, win, state, XA_ATOM, 32,
                  PropModeReplace, (unsigned char*)&skip, 1);
 
+  classhint.res_name = "test";
+  classhint.res_class = "Test";
+  XSetClassHint(display, win, &classhint);
+
   XMapWindow(display, win);
   XFlush(display);
 
This page took 0.020181 seconds and 4 git commands to generate.