From 5bb2a77b7ef357975346b0380471aedbd775d164 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 15 Mar 2017 01:59:07 -0700 Subject: 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. --- src/overlays.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/overlays.h') diff --git a/src/overlays.h b/src/overlays.h index 0c00101..0e9864c 100644 --- a/src/overlays.h +++ b/src/overlays.h @@ -20,6 +20,6 @@ void vwm_overlay_destroy(vwm_overlays_t *overlays, vwm_overlay_t *overlay); void vwm_overlay_reset_snowflakes(vwm_overlays_t *overlays, vwm_overlay_t *overlay); int vwm_overlay_set_visible_size(vwm_overlays_t *overlays, vwm_overlay_t *overlay, int width, int height); void vwm_overlay_compose(vwm_overlays_t *overlays, vwm_overlay_t *overlay, XserverRegion *res_damaged_region); -void vwm_overlay_render(vwm_overlays_t *overlays, vwm_overlay_t *overlay, Picture dest, int x, int y, int width, int height); +void vwm_overlay_render(vwm_overlays_t *overlays, vwm_overlay_t *overlay, int op, Picture dest, int x, int y, int width, int height); #endif -- cgit v1.2.3