fix EVIOCGRAB ioctl
[enigma2.git] / lib / driver / rcinput.cpp
index d10d94f3a8d251ab17a34ac9e0b22cd547e0f04c..e593087d7cfd158480f7724040cfa9e590cd4452 100644 (file)
@@ -83,8 +83,13 @@ eRCDeviceInputDev::eRCDeviceInputDev(eRCInputEventDriver *driver)
                        break;
                }
        }
+       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