projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cf03362
)
Add a WM_CLASS to the skiptaskbar test
author
Dana Jansens
<danakj@orodu.net>
Wed, 9 Dec 2009 16:02:44 +0000
(11:02 -0500)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 9 Dec 2009 16:02:44 +0000
(11:02 -0500)
tests/skiptaskbar.c
patch
|
blob
|
history
diff --git
a/tests/skiptaskbar.c
b/tests/skiptaskbar.c
index
1b24616
..
bb585c6
100644
(file)
--- a/
tests/skiptaskbar.c
+++ b/
tests/skiptaskbar.c
@@
-26,6
+26,7
@@
int main () {
Window win;
XEvent report;
Atom state, skip;
Window win;
XEvent report;
Atom state, skip;
+ XClassHint classhint;
int x=10,y=10,h=400,w=400;
display = XOpenDisplay(NULL);
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);
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);
XMapWindow(display, win);
XFlush(display);