lib/driver/rc.cpp,rcinput.cpp: only do EVIOCGRAB when event bit 0x1E is set in event...
[enigma2.git] / lib / driver / rcinput.cpp
index 0aada8df877982c5d6c3bdd7a8a1608a8df7d3ee..2bfeefa1992e53c2a07d55b346f30f91670e15c1 100644 (file)
@@ -83,9 +83,14 @@ 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)
+{
+       if (!iskeyboard)
+               driver->setExclusive(b);
 }
 
 const char *eRCDeviceInputDev::getDescription() const