diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-21 05:49:08 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-21 05:49:08 +0000 |
| commit | 15cabcb16a188912f49e99885896ed7ad7a13925 (patch) | |
| tree | b7decc45d6bdbe23f367c7a3867349bb7714a902 /openbox/composite.c | |
| parent | 4c5034aaebc560e1c18af597009577b842081df9 (diff) | |
only enable automatic composite redirection for the client windows, not the frames. maybe this will avoid screen artifacts with the crap server support
Diffstat (limited to 'openbox/composite.c')
| -rw-r--r-- | openbox/composite.c | 15 |
1 files changed, 8 insertions, 7 deletions
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 |
