Revert "get/set_userdata stores swayc_t *, fixed memory leak, minor changes."

This commit is contained in:
Drew DeVault 2015-08-16 08:10:56 -04:00
parent 76ec9422a6
commit ae536c21d3
6 changed files with 32 additions and 49 deletions

View file

@ -215,10 +215,10 @@ swayc_t *get_swayc_for_handle(wlc_handle handle, swayc_t *parent) {
}
swayc_t *get_focused_container(swayc_t *parent) {
while (parent->focused) {
parent = parent->focused;
if (parent->focused == NULL) {
return parent;
}
return parent;
return get_focused_container(parent->focused);
}
void unfocus_all(swayc_t *container) {