From 7721c2358627bb6e3b91d77c2b5d8e293cfc01b0 Mon Sep 17 00:00:00 2001 From: mirko Date: Sun, 1 May 2011 19:07:05 +0000 Subject: [PATCH] [packages/qt4] linuxinput device grabbing: disable debug output git-svn-id: svn://svn.openwrt.org/openwrt/packages@26800 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- Xorg/lib/qt4/patches/500-allow-device-grabbing.patch | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Xorg/lib/qt4/patches/500-allow-device-grabbing.patch b/Xorg/lib/qt4/patches/500-allow-device-grabbing.patch index 4818e20b2..50d7aa085 100644 --- a/Xorg/lib/qt4/patches/500-allow-device-grabbing.patch +++ b/Xorg/lib/qt4/patches/500-allow-device-grabbing.patch @@ -8,7 +8,7 @@ QStringList args = device.split(QLatin1Char(':')); foreach (const QString &arg, args) { -@@ -110,12 +111,16 @@ +@@ -110,12 +111,15 @@ repeat_delay = arg.mid(13).toInt(); else if (arg.startsWith(QLatin1String("repeat-rate="))) repeat_rate = arg.mid(12).toInt(); @@ -20,7 +20,6 @@ m_fd = QT_OPEN(dev.toLocal8Bit().constData(), O_RDWR, 0); if (m_fd >= 0) { -+ ::printf("grab kbd: %d\n", grab); + ::ioctl(m_fd, EVIOCGRAB, grab); if (repeat_delay > 0 && repeat_rate > 0) { int kbdrep[2] = { repeat_delay, repeat_rate }; @@ -35,7 +34,7 @@ #include #include // overrides QT_OPEN -@@ -101,11 +102,20 @@ +@@ -101,11 +102,19 @@ setObjectName(QLatin1String("LinuxInputSubsystem Mouse Handler")); QString dev = QLatin1String("/dev/input/event0"); @@ -53,7 +52,6 @@ m_fd = QT_OPEN(dev.toLocal8Bit().constData(), O_RDONLY | O_NDELAY, 0); if (m_fd >= 0) { -+ ::printf("grab mouse: %d\n", grab); + ::ioctl(m_fd, EVIOCGRAB, grab); m_notify = new QSocketNotifier(m_fd, QSocketNotifier::Read, this); connect(m_notify, SIGNAL(activated(int)), this, SLOT(readMouseData()));