summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Byer <bbyer@bbyer.local>2008-04-18 23:05:35 -0700
committerBen Byer <bbyer@bbyer.local>2008-04-18 23:05:35 -0700
commitb83ceaaabc989c80e78391e1d81e17d6d9c31afe (patch)
tree0c3831ea1650dcf65b76609827ad40fbb976011c
parent1695fa6268a1e64ef57c5f599bd6fbbecc499cc5 (diff)
add CompWindowUpdateAutomatic call
-rw-r--r--hw/xquartz/quartzCocoa.m13
1 files changed, 11 insertions, 2 deletions
diff --git a/hw/xquartz/quartzCocoa.m b/hw/xquartz/quartzCocoa.m
index d8f9c69e4..957028326 100644
--- a/hw/xquartz/quartzCocoa.m
+++ b/hw/xquartz/quartzCocoa.m
@@ -47,10 +47,12 @@
#undef BOOL
#include "pseudoramiX.h"
+#include <X11/extensions/composite.h>
extern void FatalError(const char *, ...);
extern char *display;
extern int noPanoramiXExtension;
+int comp_redirect_done = 0;
/*
* QuartzWriteCocoaPasteboard
@@ -129,7 +131,7 @@ void QuartzBlockHandler(
pointer pReadmask)
{
static NSAutoreleasePool *aPool = nil;
-
+// ErrorF("QuartzBlockHandler()\n");
[aPool release];
aPool = [[NSAutoreleasePool alloc] init];
}
@@ -143,5 +145,12 @@ void QuartzWakeupHandler(
int result,
pointer pReadmask)
{
- // nothing here
+// ErrorF("QuartzWakeupHandler()\n");
+ if(comp_redirect_done) return;
+ comp_redirect_done=1;
+ ErrorF("QuartzWakeupHandler(%p,%d,%p)\n", blockData, result, pReadmask);
+// ErrorF("requestingClient=%p\n",requestingClient);
+// ErrorF("serverClient=%p\n",serverClient);
+ int retval=compRedirectSubwindows (serverClient, GetCurrentRootWindow(), CompositeRedirectAutomatic);
+ ErrorF("compRedirectSubwindows returned %d\n",retval);
}