Keyboard: Correctly read the xkb locked state

Fixes a typo when reading the xkb states

Change-Id: Ie5acdbcff188049683b503ba8fc8f58c693eb102
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Null check for window on pointer_axis

The window is already destroyed and server doesn't get a message yet.

Change-Id: Ia9dd0ce891a712d1aa913fcb3313a5fe300788ab
Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>