From 15cabcb16a188912f49e99885896ed7ad7a13925 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 21 Jun 2007 05:49:08 +0000 Subject: only enable automatic composite redirection for the client windows, not the frames. maybe this will avoid screen artifacts with the crap server support --- openbox/composite.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'openbox/composite.c') diff --git a/openbox/composite.c b/openbox/composite.c index 93c025ff..deedf965 100644 --- a/openbox/composite.c +++ b/openbox/composite.c @@ -8,6 +8,8 @@ void composite_shutdown(gboolean reconfig) {} gboolean composite_window_has_alpha(Visual *vis) { return FALSE; } XID composite_get_window_picture(Window win, Visual *vis) { return None; } Pixmap composite_get_window_pixmap(Window win) { return None; } +void composite_setup_root_window() {} +void composite_enable_for_window(Window win) {} #else static Picture root_picture = None; @@ -16,13 +18,6 @@ void composite_startup(gboolean reconfig) { if (reconfig) return; if (!extensions_comp) return; - - /* Redirect window contents to offscreen pixmaps */ -/* - XCompositeRedirectSubwindows(ob_display, - RootWindow(ob_display, ob_screen), - CompositeRedirectAutomatic); -*/ } void composite_shutdown(gboolean reconfig) @@ -71,4 +66,10 @@ Pixmap composite_get_window_pixmap(Window win) return XCompositeNameWindowPixmap(ob_display, win); } +void composite_enable_for_window(Window win) +{ + /* Redirect window contents to offscreen pixmaps */ + XCompositeRedirectWindow(ob_display, win, CompositeRedirectAutomatic); +} + #endif -- cgit v1.2.3