Do not move threads to inactive immediatelly. Do it only when the thread is about to become idle.
Merge branch 'dev' of github.com:flavioc/meld into dev