Remove stray brackets

Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
Fudge a type signature to get resetLayout working

Not at all sure what uis happening here, but with this change to
the type signatures, I can now use the layoutHook accessor to
extract the hook from XConfig.

Signed-off-by: Ray Lehtiniemi <rayl@mail.com>