From 36daa7b60f0545a79482d174c778293ec831e03e Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 22 Mar 2017 18:36:54 -0700 Subject: overlays: rename overlays->charts vmon introduces a non-overlay usage, monitors is correct but ambiguous, graphs is also amiguous, charts is short and distinctive. renaming of the files comes in a separate, future commit. --- src/xwindow.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/xwindow.c') diff --git a/src/xwindow.c b/src/xwindow.c index 3812ff2..7590139 100644 --- a/src/xwindow.c +++ b/src/xwindow.c @@ -111,17 +111,17 @@ static int vwm_xwin_get_pid(vwm_t *vwm, vwm_xwindow_t *xwin) } -/* establishes an overlay on xwin if appropriate and the pid is available */ -void vwm_xwin_setup_overlay(vwm_t *vwm, vwm_xwindow_t *xwin) +/* establishes an chart on xwin if appropriate and the pid is available */ +void vwm_xwin_setup_chart(vwm_t *vwm, vwm_xwindow_t *xwin) { /* XXX FIXME: handle getting called multiple times on the same xwin */ - /* for regular windows create a monitoring overlay */ + /* for regular windows create a monitoring chart */ if (!xwin->attrs.override_redirect) { int pid = vwm_xwin_get_pid(vwm, xwin); if (pid != -1) - xwin->overlay = vwm_overlay_create(vwm->overlays, pid, xwin->attrs.width, xwin->attrs.height); + xwin->chart = vwm_chart_create(vwm->charts, pid, xwin->attrs.width, xwin->attrs.height); } } @@ -168,7 +168,7 @@ vwm_xwindow_t * vwm_xwin_create(vwm_t *vwm, Window win, vwm_grab_mode_t grabbed) */ xwin->client_mapped = (attrs.map_state != IsUnmapped); - vwm_xwin_setup_overlay(vwm, xwin); + vwm_xwin_setup_chart(vwm, xwin); vwm_composite_xwin_create(vwm, xwin); list_add_tail(&xwin->xwindows, &vwm->xwindows); /* created windows are always placed on the top of the stacking order */ @@ -199,8 +199,8 @@ void vwm_xwin_destroy(vwm_t *vwm, vwm_xwindow_t *xwin) if (xwin->name) XFree(xwin->name); - if (xwin->overlay) - vwm_overlay_destroy(vwm->overlays, xwin->overlay); + if (xwin->chart) + vwm_chart_destroy(vwm->charts, xwin->chart); vwm_composite_xwin_destroy(vwm, xwin); -- cgit v1.2.3