Changeset View
Changeset View
Standalone View
Standalone View
xembed-sni-proxy/sniproxy.cpp
Context not available. | |||||
209 | //if the client does supports that we send directly, otherwise we'll use xtest | 209 | //if the client does supports that we send directly, otherwise we'll use xtest | ||
---|---|---|---|---|---|
210 | auto waCookie = xcb_get_window_attributes(c, wid); | 210 | auto waCookie = xcb_get_window_attributes(c, wid); | ||
211 | auto windowAttributes = xcb_get_window_attributes_reply(c, waCookie, nullptr); | 211 | auto windowAttributes = xcb_get_window_attributes_reply(c, waCookie, nullptr); | ||
212 | if (! (windowAttributes->all_event_masks & XCB_EVENT_MASK_BUTTON_PRESS)) { | 212 | if (windowAttributes && ! (windowAttributes->all_event_masks & XCB_EVENT_MASK_BUTTON_PRESS)) { | ||
213 | m_injectMode = XTest; | 213 | m_injectMode = XTest; | ||
214 | free(windowAttributes); | ||||
214 | } | 215 | } | ||
215 | 216 | | |||
216 | //there's no damage event for the first paint, and sometimes it's not drawn immediately | 217 | //there's no damage event for the first paint, and sometimes it's not drawn immediately | ||
Context not available. |