diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-15 01:59:07 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@gnugeneration.com> | 2017-03-15 02:04:03 -0700 |
commit | 5bb2a77b7ef357975346b0380471aedbd775d164 (patch) | |
tree | d04aea3ae29ab73640418aa96c9aaeb92de95a32 /src/composite.c | |
parent | bc04055653fe64c4e8e109beedf96dd608007a3b (diff) |
overlays: paramize vwm_overlay_render() Render op
In vwm we were always doing a transparent overlay to preserve underlying
window visibility. With vmon this is undesirable and we just want to
copy the currently cached composited contents to the window, which is
also substantially less costly to perform.
Parameterize the operation so vwm and vmon can specify what's appropriate.
Diffstat (limited to 'src/composite.c')
-rw-r--r-- | src/composite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/composite.c b/src/composite.c index a8c0f5d..270174e 100644 --- a/src/composite.c +++ b/src/composite.c @@ -282,7 +282,7 @@ void vwm_composite_paint_all(vwm_t *vwm) if (xwin->overlay) { /* draw the monitoring overlay atop the window, note we stay within the window borders here. */ - vwm_overlay_render(vwm->overlays, xwin->overlay, root_buffer, + vwm_overlay_render(vwm->overlays, xwin->overlay, PictOpOver, root_buffer, xwin->attrs.x + xwin->attrs.border_width, xwin->attrs.y + xwin->attrs.border_width, xwin->attrs.width, |