bool glx_window_destroy(struct wcore_window *wc_self) { struct glx_window *self = glx_window(wc_self); bool ok = true; if (!wc_self) return ok; ok &= x11_window_teardown(&self->x11); ok &= wcore_window_teardown(wc_self); free(self); return ok; }
bool xegl_window_destroy(struct wcore_window *wc_self) { struct xegl_window *self = xegl_window(wc_self); bool ok = true; if (!self) return ok; ok &= wegl_window_teardown(&self->wegl); ok &= x11_window_teardown(&self->x11); free(self); return ok; }