Backport CVE-2023-5367 to Xwayland
Backport of !1187 (merged) to Xwayland.
Note that !1188 (merged) which is part of the same advisory is not needed in Xwayland - we don't support multiple screens.
Backport of !1187 (merged) to Xwayland.
Note that !1188 (merged) which is part of the same advisory is not needed in Xwayland - we don't support multiple screens.