Better xinput mask allocation.