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>
This commit is contained in:
Jamey Sharp 2010-05-14 10:36:13 -07:00 committed by Keith Packard
parent 1461b31e40
commit c6613cfc26

View File

@ -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);