test/xi2: Initialize predefined atoms before XInputExtensionInit.

XInputExtensionInit calls MakeAtom, which doesn't work without the atoms
table initialized.

Signed-off-by: Jamey Sharp <jamey@minilop.net>
Cc: Peter Hutterer <peter.hutterer@who-t.net>
Tested-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit c6613cfc26)
This commit is contained in:
Jamey Sharp 2010-05-14 10:36:13 -07:00 committed by Peter Hutterer
parent 3a3edb2c3d
commit 3b6d2b0026

View File

@ -153,6 +153,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);