Backport upstream fix to work properly with cairo 1.18.2
Cairo 1.18.2 introduced change that breaks qtile 0.28.1. This has been fixed upstream in https://github.com/qtile/qtile/pull/4991. Backport it and fixes https://github.com/qtile/qtile/issues/4987
Signed-off-by: Yao Zi ziyao@disroot.org