redirect window contents to offscreen pixmaps with composite so they are available...
authorDana Jansens <danakj@orodu.net>
Tue, 19 Jun 2007 21:40:57 +0000 (21:40 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 19 Jun 2007 21:40:57 +0000 (21:40 +0000)
openbox/screen.c

index f9b1eb6..d5a5194 100644 (file)
@@ -364,6 +364,13 @@ void screen_startup(gboolean reconfig)
         return;
     }
 
+#ifdef USE_XCOMPOSITE
+    /* Redirect window contents to offscreen pixmaps */
+    XCompositeRedirectSubwindows(ob_display,
+                                 RootWindow(ob_display, ob_screen),
+                                 CompositeRedirectAutomatic);
+#endif
+
     /* get the initial size */
     screen_resize();