diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-12-23 19:25:36 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-12-23 19:25:36 +0100 |
| commit | 2b47f0d63cb4d1bfb1979bc777795a834763db9a (patch) | |
| tree | 2b27042194c45b70f92bff7b8691ab2c761bee9a /lib/driver/rcinput.cpp | |
| parent | e8eb8e9694379204f4b9143ca6b33db48809df7f (diff) | |
| download | enigma2-2b47f0d63cb4d1bfb1979bc777795a834763db9a.tar.gz enigma2-2b47f0d63cb4d1bfb1979bc777795a834763db9a.zip | |
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..
Diffstat (limited to 'lib/driver/rcinput.cpp')
| -rw-r--r-- | lib/driver/rcinput.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 |
