From 2b47f0d63cb4d1bfb1979bc777795a834763db9a Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 23 Dec 2009 19:25:36 +0100 Subject: fix EVIOCGRAB ioctl switch to non exclusive access on input devices when call eRCInput::lock (i.e. this fixes no more working Tuxtxt plugin) remove some incorrect code eRCInput::lock now no more returns a device handle .. this is not possible this way.. --- lib/driver/rcinput.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/driver/rcinput.cpp') diff --git a/lib/driver/rcinput.cpp b/lib/driver/rcinput.cpp index 0aada8df..e593087d 100644 --- a/lib/driver/rcinput.cpp +++ b/lib/driver/rcinput.cpp @@ -83,9 +83,13 @@ eRCDeviceInputDev::eRCDeviceInputDev(eRCInputEventDriver *driver) break; } } - driver->setExclusive(!iskeyboard); + setExclusive(true); eDebug("Input device \"%s\" is %sa keyboard.", id.c_str(), iskeyboard ? "" : "not "); +} +void eRCDeviceInputDev::setExclusive(bool b) +{ + driver->setExclusive(!iskeyboard && b); } const char *eRCDeviceInputDev::getDescription() const -- cgit v1.2.3