]> git.lizzy.rs Git - bspwm.git/commit
Fix infinite loop in `find_closest_node`
authorBastien Dejean <nihilhill@gmail.com>
Thu, 6 Jun 2019 09:25:32 +0000 (11:25 +0200)
committerBastien Dejean <nihilhill@gmail.com>
Thu, 6 Jun 2019 09:25:32 +0000 (11:25 +0200)
commit5c39084ad30ea13d1ef6da3eb5f72c056c88360f
tree25c95fcca92b14366c07757dfcb2912b98f5fa51
parent5ac163b0dd12488446f2c990f6ed1ab29a10a837
Fix infinite loop in `find_closest_node`

If `ref->node == NULL` and `ref->desktop->root != NULL` (the reference
desktop contains hidden nodes or/and receptacles), then the ending
condition `n != ref->node` will never be true.

Fixes #977.
src/tree.c