[PATCH] test/xi2: Initialize predefined atoms before XInputExtensionInit.

Peter Hutterer peter.hutterer at who-t.net
Sat May 15 03:27:19 PDT 2010


On Fri, May 14, 2010 at 10:36:13AM -0700, Jamey Sharp wrote:
> XInputExtensionInit calls MakeAtom, which doesn't work without the atoms
> table initialized.
> 
> Signed-off-by: Jamey Sharp <jamey at minilop.net>
> Cc: Peter Hutterer <peter.hutterer at who-t.net>
> ---
>  test/xi2/protocol-common.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/test/xi2/protocol-common.c b/test/xi2/protocol-common.c
> index d0e93f2..fd93e15 100644
> --- a/test/xi2/protocol-common.c
> +++ b/test/xi2/protocol-common.c
> @@ -152,6 +152,7 @@ void init_simple(void)
>      screen.SetCursorPosition = set_cursor_pos;
>  
>      dixResetPrivates();
> +    InitAtoms();
>      XInputExtensionInit();
>      init_window(&root, NULL, ROOT_WINDOW_ID);
>      init_window(&window, &root, CLIENT_WINDOW_ID);
> -- 
> 1.7.0

applied, thanks

Cheers,
  Peter


More information about the xorg-devel mailing list