This rework fixes several issues:
- Qt wasn't informed about XCB_MAPPING_NOTIFY anymore
- With XKB enabled in Qt, X won't send XCB_MAPPING_NOTIFY anymore. So listen for XKB events as well.
- Install the event filter before fetching the keysym mapping to close a race window
- Use the old mapping for ungrabbing
BUG: 350816
BUG: 269403