diff options
| author | Mirko Vogt | 2011-05-01 19:07:05 +0000 |
|---|---|---|
| committer | Mirko Vogt | 2011-05-01 19:07:05 +0000 |
| commit | 089baeb392fef4db66f7b57b83e6501083c3d325 (patch) | |
| tree | 4feb823e72a77a6f7cc5db5dbdf34eea4f158a77 | |
| parent | 28e2b8173ec114139f8f3f12c9760319a5a41af8 (diff) | |
| download | archive-089baeb392fef4db66f7b57b83e6501083c3d325.tar.gz | |
[packages/qt4] linuxinput device grabbing: disable debug output
SVN-Revision: 26800
| -rw-r--r-- | Xorg/lib/qt4/patches/500-allow-device-grabbing.patch | 6 |
1 files 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 <qplatformdefs.h> #include <private/qcore_unix_p.h> // 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())); |