Skip to content

present: Check PresentOptionAsyncMayTear against capabilities

The option PresentOptionAsyncMayTear is only supported by Xwayland for now, yet the Present supported version advertised is the same for all Xservers.

So a client may try to use PresentOptionAsyncMayTear on a plain Xorg server and not get the expected result.

Check that PresentCapabilityAsyncMayTear is advertised if the client specifies PresentOptionAsyncMayTear in the present options, and fail with a BadValue error otherwise.

Edited by Olivier Fourdan

Merge request reports