xcb: don’t use the _unchecked variant for requests which have a reply

This commit is contained in:
Michael Stapelberg
2011-07-31 18:19:41 +02:00
parent 7f3f7c26b6
commit 52b3646ecc
3 changed files with 3 additions and 3 deletions

View File

@ -184,7 +184,7 @@ bool window_supports_protocol(xcb_window_t window, xcb_atom_t atom) {
xcb_icccm_get_wm_protocols_reply_t protocols;
bool result = false;
cookie = xcb_icccm_get_wm_protocols_unchecked(conn, window, A_WM_PROTOCOLS);
cookie = xcb_icccm_get_wm_protocols(conn, window, A_WM_PROTOCOLS);
if (xcb_icccm_get_wm_protocols_reply(conn, cookie, &protocols, NULL) != 1)
return false;