[packages/qt4] linuxinput device grabbing: disable debug output
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26800 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
2701b2866e
commit
7721c23586
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
QStringList args = device.split(QLatin1Char(':'));
|
QStringList args = device.split(QLatin1Char(':'));
|
||||||
foreach (const QString &arg, args) {
|
foreach (const QString &arg, args) {
|
||||||
@@ -110,12 +111,16 @@
|
@@ -110,12 +111,15 @@
|
||||||
repeat_delay = arg.mid(13).toInt();
|
repeat_delay = arg.mid(13).toInt();
|
||||||
else if (arg.startsWith(QLatin1String("repeat-rate=")))
|
else if (arg.startsWith(QLatin1String("repeat-rate=")))
|
||||||
repeat_rate = arg.mid(12).toInt();
|
repeat_rate = arg.mid(12).toInt();
|
||||||
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
m_fd = QT_OPEN(dev.toLocal8Bit().constData(), O_RDWR, 0);
|
m_fd = QT_OPEN(dev.toLocal8Bit().constData(), O_RDWR, 0);
|
||||||
if (m_fd >= 0) {
|
if (m_fd >= 0) {
|
||||||
+ ::printf("grab kbd: %d\n", grab);
|
|
||||||
+ ::ioctl(m_fd, EVIOCGRAB, grab);
|
+ ::ioctl(m_fd, EVIOCGRAB, grab);
|
||||||
if (repeat_delay > 0 && repeat_rate > 0) {
|
if (repeat_delay > 0 && repeat_rate > 0) {
|
||||||
int kbdrep[2] = { repeat_delay, repeat_rate };
|
int kbdrep[2] = { repeat_delay, repeat_rate };
|
||||||
@ -35,7 +34,7 @@
|
|||||||
|
|
||||||
#include <qplatformdefs.h>
|
#include <qplatformdefs.h>
|
||||||
#include <private/qcore_unix_p.h> // overrides QT_OPEN
|
#include <private/qcore_unix_p.h> // overrides QT_OPEN
|
||||||
@@ -101,11 +102,20 @@
|
@@ -101,11 +102,19 @@
|
||||||
setObjectName(QLatin1String("LinuxInputSubsystem Mouse Handler"));
|
setObjectName(QLatin1String("LinuxInputSubsystem Mouse Handler"));
|
||||||
|
|
||||||
QString dev = QLatin1String("/dev/input/event0");
|
QString dev = QLatin1String("/dev/input/event0");
|
||||||
@ -53,7 +52,6 @@
|
|||||||
|
|
||||||
m_fd = QT_OPEN(dev.toLocal8Bit().constData(), O_RDONLY | O_NDELAY, 0);
|
m_fd = QT_OPEN(dev.toLocal8Bit().constData(), O_RDONLY | O_NDELAY, 0);
|
||||||
if (m_fd >= 0) {
|
if (m_fd >= 0) {
|
||||||
+ ::printf("grab mouse: %d\n", grab);
|
|
||||||
+ ::ioctl(m_fd, EVIOCGRAB, grab);
|
+ ::ioctl(m_fd, EVIOCGRAB, grab);
|
||||||
m_notify = new QSocketNotifier(m_fd, QSocketNotifier::Read, this);
|
m_notify = new QSocketNotifier(m_fd, QSocketNotifier::Read, this);
|
||||||
connect(m_notify, SIGNAL(activated(int)), this, SLOT(readMouseData()));
|
connect(m_notify, SIGNAL(activated(int)), this, SLOT(readMouseData()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user