xcb: use keyboard event source window to determine auto-repeat value
authorDyami Caliri <dyami@dragonframe.com>
Thu, 19 Jun 2014 05:20:05 +0000 (22:20 -0700)
committerGatis Paeglis <gatis.paeglis@digia.com>
Wed, 20 Aug 2014 17:43:02 +0000 (19:43 +0200)
commit07c34fcc8a721ffe989eb8882b75ecb95600516c
treec970a3462334470ee707dd83dc3d93090f449d07
parent8688dfcd7ce148a8e7fcd16521d458417eadcbf8
xcb: use keyboard event source window to determine auto-repeat value

The xcb auto-repeat checking code checks for queued events on the target
(focused) window. This breaks down if you have a native child widget,
and QKeyEvent::autoRepeat is never true.

Task-number: QTBUG-21500
Change-Id: Ia979edfa8a3afce07a3e1cbaa778541ffb9ce5dc
Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
src/plugins/platforms/xcb/qxcbconnection.cpp
src/plugins/platforms/xcb/qxcbkeyboard.cpp
src/plugins/platforms/xcb/qxcbkeyboard.h