Mouse handle and minor changes
See https://github.com/qtile/qtile/issues/394