path: root/src/plugins/platforminputcontexts
diff options
authorGatis Paeglis <>2013-04-16 20:24:45 +0200
committerThe Qt Project <>2013-05-07 22:43:14 +0200
commit43578e1901ab56e6df3e58db21e3e52a28cd9eae (patch)
treecbf7fd9ecedf6f3dd221af7b9adef601a716b621 /src/plugins/platforminputcontexts
parent260bfaf056c08330ec2ed292e8d9def550e662ec (diff)
Use X11 core protocol when xkb not available
To have a properly working key input in the xcb plugin in the case when xcb-xkb library is not available we can update the xkb_state struct with the keyboard state information available in the X11 core events. The current modifier state is reported to clients in a number of core protocol events and can be determined using the QueryPointer request. This is how it is done in Weston, Wayland's reference implementation. Note: In case the X server doesn't have a xkb support on it (which is very unlikely), then xkbcommon will only pick up the user's primary layout. The X server with the xkb support stuffs unused bits (13 and 14) of 'state' in the core events with the effective keyboard group, which we can use to determine layout changes. Change-Id: I9f1ef635109870e7412ef1157ca592f3c8f9271c Reviewed-by: Samuel Rødal <>
Diffstat (limited to 'src/plugins/platforminputcontexts')
0 files changed, 0 insertions, 0 deletions