Changeset 26800


Ignore:
Timestamp:
2011-05-01T21:07:05+02:00 (5 years ago)
Author:
mirko
Message:

[packages/qt4] linuxinput device grabbing: disable debug output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/Xorg/lib/qt4/patches/500-allow-device-grabbing.patch

    r26780 r26800  
    99     QStringList args = device.split(QLatin1Char(':')); 
    1010     foreach (const QString &arg, args) { 
    11 @@ -110,12 +111,16 @@ 
     11@@ -110,12 +111,15 @@ 
    1212             repeat_delay = arg.mid(13).toInt(); 
    1313         else if (arg.startsWith(QLatin1String("repeat-rate="))) 
     
    2121     m_fd = QT_OPEN(dev.toLocal8Bit().constData(), O_RDWR, 0); 
    2222     if (m_fd >= 0) { 
    23 +        ::printf("grab kbd: %d\n", grab); 
    2423+        ::ioctl(m_fd, EVIOCGRAB, grab); 
    2524         if (repeat_delay > 0 && repeat_rate > 0) { 
     
    3635 #include <qplatformdefs.h> 
    3736 #include <private/qcore_unix_p.h> // overrides QT_OPEN 
    38 @@ -101,11 +102,20 @@ 
     37@@ -101,11 +102,19 @@ 
    3938     setObjectName(QLatin1String("LinuxInputSubsystem Mouse Handler")); 
    4039  
     
    5453     m_fd = QT_OPEN(dev.toLocal8Bit().constData(), O_RDONLY | O_NDELAY, 0); 
    5554     if (m_fd >= 0) { 
    56 +        ::printf("grab mouse: %d\n", grab); 
    5755+        ::ioctl(m_fd, EVIOCGRAB, grab); 
    5856         m_notify = new QSocketNotifier(m_fd, QSocketNotifier::Read, this); 
Note: See TracChangeset for help on using the changeset viewer.