Hi,
When running "Xnest -query <some-host>", logging in, and starting soffice,
it will hang if the local xserver is using Xinerama. It seens that the
Xnest is not (always) receiving back the expected order of events after a
XCopyArea, and blocking in the XIfEvent call. Whit this patch, that is only
useful to not let it block forever, it will print the error message, always
with the event 14 (NoExpose), because the call to XCheckIfEvent returned
too early...
I just wrote this patch to Xnest:
--%<--
Index: Events.c
===================================================================
RCS file: /home/x-cvs/xc/programs/Xserver/hw/xnest/Events.c,v
retrieving revision 1.2
diff -u -u -r1.2 Events.c
--- Events.c 2001/08/01 00:44:57 1.2
+++ Events.c 2002/07/23 20:51:47
@@ -187,7 +187,7 @@
break;
default:
- ErrorF("xnest warning: unhandled event\n");
+ ErrorF("xnest warning: unhandled event %d\n", X.type);
break;
}
}
Index: GCOps.c
===================================================================
RCS file: /home/x-cvs/xc/programs/Xserver/hw/xnest/GCOps.c,v
retrieving revision 3.4
diff -u -u -r3.4 GCOps.c
--- GCOps.c 2001/01/17 22:36:55 3.4
+++ GCOps.c 2002/07/23 20:51:48
@@ -157,8 +157,8 @@
if(!pReg || !pTmpReg) return NullRegion;
pending = True;
- while (pending) {
- XIfEvent(xnestDisplay, &event, xnestBitBlitPredicate, NULL);
+ while (pending &&
+ XCheckIfEvent(xnestDisplay, &event, xnestBitBlitPredicate, NULL)) {
switch (event.type) {
case NoExpose:
--%<--
Paulo
_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert