diff --git a/src/compton.c b/src/compton.c index 41192f8..78a6f75 100644 --- a/src/compton.c +++ b/src/compton.c @@ -5603,7 +5603,7 @@ session_destroy(session_t *ps) { // Free reg_win if (ps->reg_win) { - XDestroyWindow(ps->dpy, ps->reg_win); + xcb_destroy_window(c, ps->reg_win); ps->reg_win = None; }