Esempio n. 1
0
/** Update the size hints of a client.
 * \param c The client.
 * \param reply (Optional) An existing reply.
 */
void
property_update_wm_normal_hints(client_t *c, xcb_get_property_reply_t *reply)
{
    if(reply)
    {
        if(!xcb_icccm_get_wm_size_hints_from_reply(&c->size_hints, reply))
            return;
    }
    else
    {
        if(!xcb_icccm_get_wm_normal_hints_reply(globalconf.connection,
                                                xcb_icccm_get_wm_normal_hints_unchecked(globalconf.connection,
                                                                                        c->window),
                                                &c->size_hints, NULL))
            return;
    }
}
Esempio n. 2
0
xcb_get_property_cookie_t
property_get_wm_normal_hints(client_t *c)
{
    return xcb_icccm_get_wm_normal_hints_unchecked(globalconf.connection, c->window);
}