[rkward-cvs] SF.net SVN: rkward: [1203] trunk/rkward/rkward/windows/qxembedcopy.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Wed Jan 24 14:35:57 UTC 2007


Revision: 1203
          http://svn.sourceforge.net/rkward/?rev=1203&view=rev
Author:   tfry
Date:     2007-01-24 06:35:56 -0800 (Wed, 24 Jan 2007)

Log Message:
-----------
Tweak workaround for window withdrawn but not reparented case

Modified Paths:
--------------
    trunk/rkward/rkward/windows/qxembedcopy.cpp

Modified: trunk/rkward/rkward/windows/qxembedcopy.cpp
===================================================================
--- trunk/rkward/rkward/windows/qxembedcopy.cpp	2007-01-23 22:35:25 UTC (rev 1202)
+++ trunk/rkward/rkward/windows/qxembedcopy.cpp	2007-01-24 14:35:56 UTC (rev 1203)
@@ -973,14 +973,14 @@
             XWithdrawWindow(qt_xdisplay(), window, qt_xscreen());
             QApplication::flushX();
             // L1711: See L1610
-            for (int i=0; i < 10000; ++i) {	// this section changed from original QXEmbed
+            for (int i=0; i < 100000; ++i) {	// this section changed from original QXEmbed
                 if (wstate_withdrawn(window)) {
                     Window parent = 0;
                     get_parent(w, &parent);
                     if (parent == qt_xrootwin()) break;
-                    else if ((i%20) == 0) qDebug ("not really withdrawn, yet in loop #%d", i);
+                    else if ((i%500) == 0) qDebug ("not really withdrawn, yet in loop #%d", i);
                 }
-                USLEEP(1000);
+                USLEEP(10);
             }
         }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list