From e30ff25dd31cdc4bf63a9a0a8f2a4c549d38e341 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 3 Oct 2018 14:02:49 +0200 Subject: [PATCH] Replace XClearArea with xcb_clear_area Signed-off-by: Uli Schlachter --- src/compton.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compton.c b/src/compton.c index ed51af0..41192f8 100644 --- a/src/compton.c +++ b/src/compton.c @@ -2415,7 +2415,8 @@ destroy_win(session_t *ps, Window id) { static inline void root_damaged(session_t *ps) { if (ps->root_tile_paint.pixmap) { - XClearArea(ps->dpy, ps->root, 0, 0, 0, 0, true); + xcb_connection_t *c = XGetXCBConnection(ps->dpy); + xcb_clear_area(c, true, ps->root, 0, 0, 0, 0); free_root_tile(ps); }