/** The property notify event handler. * \param state currently unused * \param window The window to obtain update the property with. * \param name The protocol atom, currently unused. * \param reply (Optional) An existing reply. */ static int property_handle_xembed_info(uint8_t state, xcb_window_t window, xcb_atom_t name, xcb_get_property_reply_t *reply) { xembed_window_t *emwin = xembed_getbywin(&globalconf.embedded, window); if(emwin) xembed_property_update(globalconf.connection, emwin, reply); return 0; }
/** The property notify event handler. * \param state currently unused * \param window The window to obtain update the property with. * \param name The protocol atom, currently unused. * \param reply (Optional) An existing reply. */ static int property_handle_xembed_info(uint8_t state, xcb_window_t window) { xembed_window_t *emwin = xembed_getbywin(&globalconf.embedded, window); if(emwin) { xcb_get_property_cookie_t cookie = xcb_get_property(globalconf.connection, 0, window, _XEMBED_INFO, XCB_GET_PROPERTY_TYPE_ANY, 0, 3); xcb_get_property_reply_t *propr = xcb_get_property_reply(globalconf.connection, cookie, 0); xembed_property_update(globalconf.connection, emwin, propr); p_delete(&propr); } return 0; }