qtile/qtile — pull request #331 by xarvh (2013-06-23 00:28:40+00:00)
Title: Restore prevgroup and nextgroup

The `prevgroup` and `nextgroup` commands have been broken by a recent commit.
Unit tests also fail.

The logic for group selection is poor, redundant, and does not handle the case where both `skip_empty` and `skip_managed` are False.