Add the xcb_connection_t to session_t
Signed-off-by: Uli Schlachter <psychon@znc.in> Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
committed by
Yuxuan Shui
parent
54807342f4
commit
37ef9c5b8a
3
src/c2.c
3
src/c2.c
@@ -1463,9 +1463,8 @@ c2_match_once_leaf(session_t *ps, win *w, const c2_l_t *pleaf,
|
||||
idx, 1L, c2_get_atom_type(pleaf), pleaf->format);
|
||||
Atom atom = winprop_get_int(prop);
|
||||
if (atom) {
|
||||
xcb_connection_t *c = XGetXCBConnection(ps->dpy);
|
||||
xcb_get_atom_name_reply_t *reply =
|
||||
xcb_get_atom_name_reply(c, xcb_get_atom_name(c, atom), NULL);
|
||||
xcb_get_atom_name_reply(ps->c, xcb_get_atom_name(ps->c, atom), NULL);
|
||||
if (reply) {
|
||||
tgt_free = strndup(
|
||||
xcb_get_atom_name_name(reply), xcb_get_atom_name_name_length(reply));
|
||||
|
||||
Reference in New Issue
Block a user