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-10 10:41:40 +01:00
committed by Yuxuan Shui
parent 0cae42faaa
commit a192bfb130
+1 -1
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);
}