[RkWard-devel] R plot problems.

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Wed Jan 24 14:47:21 UTC 2007


On Wednesday 24 January 2007 12:42, Thomas Friedrichsmeier wrote:
> Unfortunately, from the RKWard side, there's little we can do to further
> work around the issue.

Ok, I gave it another try, but not sure whether it improves things much (I 
only get this pretty rarely). Maybe you could try the current SVN trunk, or 
alternatively apply the following patch to rkward/windows/qxembed.cpp in the 
0.4.5 sources:

Index: qxembedcopy.cpp
===================================================================
--- qxembedcopy.cpp     (revision 1202)
+++ qxembedcopy.cpp     (revision 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 will be less noisy (hoping to give the window manager a better chance to 
finish its work), and wait longer on systems where usleep is not defined (or 
does not really sleep for the specified number of microseconds, but only 
until the next timeslice becomes available.

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20070124/f29a17bf/attachment.sig>


More information about the Rkward-devel mailing list