diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/composite.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/composite.c b/src/composite.c index 7f06cec..76a6d81 100644 --- a/src/composite.c +++ b/src/composite.c @@ -164,10 +164,15 @@ void vwm_composite_invalidate_root(vwm_t *vwm) if (!compositing_mode) return; - if (root_picture) XRenderFreePicture(VWM_XDISPLAY(vwm), root_picture); - root_picture = None; - if (root_buffer) XRenderFreePicture(VWM_XDISPLAY(vwm), root_picture); - root_buffer = None; + if (root_picture) { + XRenderFreePicture(VWM_XDISPLAY(vwm), root_picture); + root_picture = None; + } + + if (root_buffer) { + XRenderFreePicture(VWM_XDISPLAY(vwm), root_buffer); + root_buffer = None; + } } void vwm_composite_repaint_needed(vwm_t *vwm) |