[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    qt-copy/src/kernel
From:       Luboš Luňák <l.lunak () kde ! org>
Date:       2003-10-06 17:02:33
[Download RAW message or body]

CVS commit by lunakl: 

Avoid _NET_WM_PING endless loop (fix for #64671).


  M +6 -3      qapplication_x11.cpp   1.93


--- qt-copy/src/kernel/qapplication_x11.cpp  #1.92:1.93
@@ -3089,7 +3089,10 @@ int QApplication::x11ClientMessage(QWidg
 #endif // QT_NO_WHATSTHIS
             } else if ( a == qt_net_wm_ping ) {
+                // avoid receiving replies
+                if( event->xclient.window != QPaintDevice::x11AppRootWindow( w->x11Screen())) {
                 event->xclient.window = QPaintDevice::x11AppRootWindow( w->x11Screen() );
                 XSendEvent( event->xclient.display, event->xclient.window,
                             False, SubstructureNotifyMask|SubstructureRedirectMask, event );
+                }
             }
         } else if ( event->xclient.message_type == qt_qt_scrolldone ) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic