Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
th0br0
· 11y ago · 0 comments
shouldn't that be
if(parent == NULL || parent->children == NULL) {
in get_swayc_for_handle ?
Comments
[–]
Luminarys
11y ago
Because get_swayc_for_handle is always called using the root container, when it recurses down it should never end up checking a parent which is NULL.