autotests/xdgTestClientRules: Add helper function setWindowRule()
Reduces ~700 lines of the same code boilerplate to simplify the tests and prevent mistakes.
Reduces ~700 lines of the same code boilerplate to simplify the tests and prevent mistakes.