diff options
author | Ben Byer <bbyer@bbyer.local> | 2008-04-18 23:05:35 -0700 |
---|---|---|
committer | Ben Byer <bbyer@bbyer.local> | 2008-04-18 23:05:35 -0700 |
commit | b83ceaaabc989c80e78391e1d81e17d6d9c31afe (patch) | |
tree | 0c3831ea1650dcf65b76609827ad40fbb976011c | |
parent | 1695fa6268a1e64ef57c5f599bd6fbbecc499cc5 (diff) |
add CompWindowUpdateAutomatic call
-rw-r--r-- | hw/xquartz/quartzCocoa.m | 13 |
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); } |