diff options
author | Bernhard R. Link <brlink@debian.org> | 2013-02-13 00:11:43 +0100 |
---|---|---|
committer | Bernhard R. Link <brlink@debian.org> | 2013-02-13 19:53:24 +0100 |
commit | 13812e9f61fa3141619cb0e2fdf0ed41a5e2ec1d (patch) | |
tree | 2bce116eb23792f02905e56997a433c3d6eccc21 | |
parent | 32419fdf409ff9aae184385a98341b964768be0c (diff) | |
download | ratpoison-13812e9f61fa3141619cb0e2fdf0ed41a5e2ec1d.zip |
move xa_string initialisation before first use
otherwise ratpoison -c no longer works
-rw-r--r-- | src/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -673,6 +673,11 @@ main (int argc, char *argv[]) rp_command_result = XInternAtom (dpy, "RP_COMMAND_RESULT", False); rp_selection = XInternAtom (dpy, "RP_SELECTION", False); + /* TEXT atoms */ + xa_string = XA_STRING; + xa_compound_text = XInternAtom(dpy, "COMPOUND_TEXT", False); + xa_utf8_string = XInternAtom(dpy, "UTF8_STRING", False); + if (cmd_count > 0) { int j; @@ -701,11 +706,6 @@ 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)); |