From 089baeb392fef4db66f7b57b83e6501083c3d325 Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Sun, 1 May 2011 19:07:05 +0000 Subject: [PATCH] [packages/qt4] linuxinput device grabbing: disable debug output SVN-Revision: 26800 --- 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 4818e20b20..50d7aa085b 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())); -- 2.30.2