Replace XClearArea with xcb_clear_area

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2018-10-03 14:02:49 +02:00 committed by Yuxuan Shui
parent 28e9488e25
commit e30ff25dd3
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}