fix EVIOCGRAB ioctl
[enigma2.git] / lib / driver / rcinput.cpp
index 0aada8df877982c5d6c3bdd7a8a1608a8df7d3ee..e593087d7cfd158480f7724040cfa9e590cd4452 100644 (file)
@@ -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