summaryrefslogtreecommitdiff
path: root/cwmcc/msg.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-10 18:48:47 +0000
committerDana Jansens <danakj@orodu.net>2003-04-10 18:48:47 +0000
commitd8fc08f33d5148be6294a8469066cf6a4604e940 (patch)
treec87eb89f655e1fa013f444e4e502df59eb8f6916 /cwmcc/msg.c
parenta5bd2babc813d990df494832feef55c7b0f17195 (diff)
add all functions for getting and setting window properties
Diffstat (limited to 'cwmcc/msg.c')
-rw-r--r--cwmcc/msg.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/cwmcc/msg.c b/cwmcc/msg.c
new file mode 100644
index 00000000..74567a1b
--- /dev/null
+++ b/cwmcc/msg.c
@@ -0,0 +1,16 @@
+void prop_message(Window about, Atom messagetype, long data0, long data1,
+ long data2, long data3)
+{
+ XEvent ce;
+ ce.xclient.type = ClientMessage;
+ ce.xclient.message_type = messagetype;
+ ce.xclient.display = cwmcc_display;
+ ce.xclient.window = about;
+ ce.xclient.format = 32;
+ ce.xclient.data.l[0] = data0;
+ ce.xclient.data.l[1] = data1;
+ ce.xclient.data.l[2] = data2;
+ ce.xclient.data.l[3] = data3;
+ XSendEvent(cwmcc_display, ob_root, FALSE,
+ SubstructureNotifyMask | SubstructureRedirectMask, &ce);
+}