--- xcompmgr.c.DetermineMode.orig	2009-09-25 15:18:10.000000000 +0200
+++ xcompmgr.c	2009-09-25 15:18:56.000000000 +0200
@@ -1568,6 +1568,7 @@
     restack_win (dpy, w, ce->above);
     if (damage)
     {
+	determine_mode (dpy, w);
 	XserverRegion	extents = win_extents (dpy, w);
 	XFixesUnionRegion (dpy, damage, damage, extents);
 	XFixesDestroyRegion (dpy, extents);
