Replace XSetSelectionOwner with XCB

Note that the argument order is different between Xlib and XCB.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2018-10-03 14:06:41 +02:00 committed by Yuxuan Shui
parent 0cae42faaa
commit a192bfb130
1 changed files with 1 additions and 1 deletions

View File

@ -3565,7 +3565,7 @@ register_cm(session_t *ps) {
fprintf(stderr, "Another composite manager is already running\n");
return false;
}
XSetSelectionOwner(ps->dpy, atom, ps->reg_win, 0);
xcb_set_selection_owner(c, ps->reg_win, atom, 0);
free(buf);
}