Define the custom handler `Toggle`
Don’t count the windows, again

The commit 1eb4f4fd3175d0880fc59c027872f94fb7a47f20 contained a typo.