X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fcomposite.c;h=deedf9651d91fd8f2985518ac280d32fb92cd2dc;hb=b76ec18d1c8857cf32598c822364298fc535c84e;hp=93c025ff527f5bf301e76b31b6961908304b8a1e;hpb=4c5034aaebc560e1c18af597009577b842081df9;p=chaz%2Fopenbox 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