event: fix memory leak on client size hints update
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
9cf1bc00c9
commit
db9e50e728
2
client.c
2
client.c
|
@ -744,7 +744,7 @@ client_updatewmhints(client_t *c)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Update the size hintz of a client.
|
/** Update the size hints of a client.
|
||||||
* \param c The client.
|
* \param c The client.
|
||||||
* \return A pointer to a xcb_size_hints_t.
|
* \return A pointer to a xcb_size_hints_t.
|
||||||
*/
|
*/
|
||||||
|
|
2
event.c
2
event.c
|
@ -531,7 +531,7 @@ event_handle_propertynotify(void *data __attribute__ ((unused)),
|
||||||
globalconf.screens[c->screen].need_arrange = true;
|
globalconf.screens[c->screen].need_arrange = true;
|
||||||
}
|
}
|
||||||
else if (ev->atom == WM_NORMAL_HINTS)
|
else if (ev->atom == WM_NORMAL_HINTS)
|
||||||
client_updatesizehints(c);
|
xcb_free_size_hints(client_updatesizehints(c));
|
||||||
else if (ev->atom == WM_HINTS)
|
else if (ev->atom == WM_HINTS)
|
||||||
client_updatewmhints(c);
|
client_updatewmhints(c);
|
||||||
else if(ev->atom == WM_NAME || ev->atom == _NET_WM_NAME)
|
else if(ev->atom == WM_NAME || ev->atom == _NET_WM_NAME)
|
||||||
|
|
Loading…
Reference in New Issue