add getting of some root properties
[mikachu/openbox.git] / cwmcc / msg.c
1 void prop_message(Window about, Atom messagetype, long data0, long data1,
2                   long data2, long data3)
3 {
4     XEvent ce;
5     ce.xclient.type = ClientMessage;
6     ce.xclient.message_type = messagetype;
7     ce.xclient.display = cwmcc_display;
8     ce.xclient.window = about;
9     ce.xclient.format = 32;
10     ce.xclient.data.l[0] = data0;
11     ce.xclient.data.l[1] = data1;
12     ce.xclient.data.l[2] = data2;
13     ce.xclient.data.l[3] = data3;
14     XSendEvent(cwmcc_display, ob_root, FALSE,
15                SubstructureNotifyMask | SubstructureRedirectMask, &ce);
16 }