ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] [PATCH] move xa_string initialisation before first use


From: Jérémie Courrèges -Anglas
Subject: Re: [RP] [PATCH] move xa_string initialisation before first use
Date: Wed, 13 Feb 2013 18:38:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.93 (berkeley-unix)

"Bernhard R. Link" <address@hidden> writes:

> otherwise ratpoison -c no longer works

Indeed, please commit.

> ---
>  src/main.c |   10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/src/main.c b/src/main.c
> index 61aad69..ce90847 100644
> --- a/src/main.c
> +++ b/src/main.c
> @@ -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));
<#secure method=pgpmime mode=sign>

-- 
Jérémie Courrèges-Anglas
GPG Key fingerprint: 61DB D9A0 00A4 67CF 2A90  8961 6191 8FBF 06A1 1494



reply via email to

[Prev in Thread] Current Thread [Next in Thread]