Test if the device is grabbed in some of the evdev plugins
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Wed, 6 Jun 2012 11:09:41 +0000 (14:09 +0300)
committerQt by Nokia <qt-info@nokia.com>
Wed, 6 Jun 2012 13:29:34 +0000 (15:29 +0200)
commit0cf0a2ae7c12a96883b4287005c0be1c4875cb76
tree484a0a6bdf2ed4b07e2a046c99e2861adb6f61b6
parent302e6968f1152d5dee8d5debafb313bd53fa55ff
Test if the device is grabbed in some of the evdev plugins

Even though they target embedded devices, the touch and tablet plugins
are very often used on desktop, under X, for development and
experimenting. However the X.org drivers like to grab the input
devices, resulting in getting no events when reading
directly. Inspired by evtest, we show a warning from now on in this
case so the user has a clue what's going on.

Change-Id: I19474f1fcc5163f2601e7000aaee0cce54f99367
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/platformsupport/input/evdevtablet/qevdevtablet.cpp
src/platformsupport/input/evdevtouch/qevdevtouch.cpp