diff options
author | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-02-06 19:28:33 +0100 |
---|---|---|
committer | Jérémie Courrèges-Anglas <jca@wxcvbn.org> | 2013-02-06 21:17:47 +0100 |
commit | 3725c23fddd8e936a91296f74e3fd6342270d6bb (patch) | |
tree | 4aec8e8d58ad232918aea32863a75d36f976587e /src/communications.c | |
parent | 5c0abe47a800dca3faf97b7ec608d86fddab25b6 (diff) | |
download | ratpoison-3725c23fddd8e936a91296f74e3fd6342270d6bb.zip |
make TEXT atoms global variables
* (events.c) extract xa_compound_text from selection_request(),
make it a global
* introduce xa_string (same as XA_STRING) and rename
utf8_string to xa_utf8_string, for consistency
Diffstat (limited to 'src/communications.c')
-rw-r--r-- | src/communications.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/communications.c b/src/communications.c index 5f0cdc7..0b50c9e 100644 --- a/src/communications.c +++ b/src/communications.c @@ -43,7 +43,7 @@ receive_command_result (Window w) /* First, find out how big the property is. */ status = XGetWindowProperty (dpy, w, rp_command_result, - 0, 0, False, XA_STRING, + 0, 0, False, xa_string, &type_ret, &format_ret, &nitems, &bytes_after, &result); @@ -62,7 +62,7 @@ receive_command_result (Window w) whole message. */ status = XGetWindowProperty (dpy, w, rp_command_result, 0, (bytes_after / 4) + (bytes_after % 4 ? 1 : 0), - True, XA_STRING, &type_ret, &format_ret, &nitems, + True, xa_string, &type_ret, &format_ret, &nitems, &bytes_after, &result); /* Failed to retrieve property. */ @@ -108,7 +108,7 @@ send_command (unsigned char interactive, unsigned char *cmd, int screen_num) /* Select first to avoid race condition */ XSelectInput (dpy, w, PropertyChangeMask); - XChangeProperty (dpy, w, rp_command, XA_STRING, + XChangeProperty (dpy, w, rp_command, xa_string, 8, PropModeReplace, (unsigned char*)sbuf_get(s), strlen ((char *)cmd) + 2); XChangeProperty (dpy, root, |