diff options
Diffstat (limited to 'src/communications.c')
-rw-r--r-- | src/communications.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/communications.c b/src/communications.c index 7d94a1b..f87e115 100644 --- a/src/communications.c +++ b/src/communications.c @@ -66,3 +66,10 @@ send_kill () PRINT_ERROR ("failed to send kill event\n"); } } + +int +send_command (unsigned char *cmd) +{ + return XChangeProperty (dpy, DefaultRootWindow (dpy), rp_command, XA_STRING, + 8, PropModeAppend, cmd, strlen (cmd) + 1); +} |