mirror of
https://github.com/storytold/winit.git
synced 2026-11-27 17:00:51 +01:00
* x11: Support XRandR versions older than 1.5 Fixes #392 Previously, initializing the member `xrandr` of `XConnection` resulted in a panic when symbols from XRandR version 1.5 were missing. There was already code to handle older versions of XRandR but it was never executed because of the panic. The member `XConnection.xrandr` now contains only functions that can safely be used with older versions. Additionally, this commit adds a new member to `XConnection` of type `Option<ffi::XRandr>` that only contains a value if version 1.5 functionality is present. * x11: Document the xrandr* members of XConnection