diff options
Diffstat (limited to 'src/vwm.c')
-rw-r--r-- | src/vwm.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -82,11 +82,16 @@ static vwm_t * vwm_startup(void) goto _err_free; } - if (!(vwm->charts = vwm_charts_create(vwm->xserver))) { - VWM_ERROR("Failed to create charts"); + if (!(vwm->vcr_backend = vcr_backend_new(VCR_BACKEND_TYPE_XLIB, vwm->xserver))) { + VWM_ERROR("Failed to create vcr backend"); goto _err_xclose; } + if (!(vwm->charts = vwm_charts_create(vwm->vcr_backend))) { + VWM_ERROR("Failed to create charts"); + goto _err_vbe; + } + /* query the needed X extensions */ if (!XQueryExtension(VWM_XDISPLAY(vwm), COMPOSITE_NAME, &composite_opcode, &composite_event, &composite_error)) { VWM_ERROR("No composite extension available"); @@ -173,6 +178,9 @@ static vwm_t * vwm_startup(void) _err_charts: vwm_charts_destroy(vwm->charts); +_err_vbe: + vcr_backend_free(vwm->vcr_backend); + _err_xclose: vwm_xserver_close(vwm->xserver); |