summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-02-06 19:28:33 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2013-02-06 21:17:47 +0100
commit3725c23fddd8e936a91296f74e3fd6342270d6bb (patch)
tree4aec8e8d58ad232918aea32863a75d36f976587e /src/main.c
parent5c0abe47a800dca3faf97b7ec608d86fddab25b6 (diff)
downloadratpoison-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/main.c')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index bbd0e12..61aad69 100644
--- a/src/main.c
+++ b/src/main.c
@@ -701,6 +701,11 @@ main (int argc, char *argv[])
wm_take_focus = XInternAtom(dpy, "WM_TAKE_FOCUS", False);
wm_colormaps = XInternAtom(dpy, "WM_COLORMAP_WINDOWS", False);
+ /* TEXT atoms */
+ xa_string = XA_STRING;
+ xa_compound_text = XInternAtom(dpy, "COMPOUND_TEXT", False);
+ xa_utf8_string = XInternAtom(dpy, "UTF8_STRING", False);
+
/* netwm atoms */
_net_wm_pid = XInternAtom(dpy, "_NET_WM_PID", False);
PRINT_DEBUG (("_NET_WM_PID = %ld\n", _net_wm_pid));
@@ -709,7 +714,6 @@ main (int argc, char *argv[])
_net_wm_window_type = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE", False);
_net_wm_window_type_dialog = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DIALOG", False);
_net_wm_name = XInternAtom(dpy, "_NET_WM_NAME", False);
- utf8_string = XInternAtom(dpy, "UTF8_STRING", False);
/* Setup signal handlers. */
XSetErrorHandler(handler);