diff --git a/CHANGELOG.md b/CHANGELOG.md index be0cfef8..ae6ed751 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Unreleased` header. # Unreleased +- On X11, reduce the amount of time spent fetching screen resources. - On Windows, macOS, X11, Wayland and Web, implement setting images as cursors. See the `custom_cursors.rs` example. - **Breaking:** Remove `Window::set_cursor_icon` - Add `WindowBuilder::with_cursor` and `Window::set_cursor` which takes a `CursorIcon` or `CustomCursor` diff --git a/src/platform_impl/linux/x11/monitor.rs b/src/platform_impl/linux/x11/monitor.rs index 09e42d66..e5859ac3 100644 --- a/src/platform_impl/linux/x11/monitor.rs +++ b/src/platform_impl/linux/x11/monitor.rs @@ -344,7 +344,7 @@ impl ScreenResources { conn: &impl x11rb::connection::Connection, root: &x11rb::protocol::xproto::Screen, ) -> Result { - let version = conn.randr_query_version(0, 0)?.reply()?; + let version = conn.randr_query_version(1, 3)?.reply()?; if (version.major_version == 1 && version.minor_version >= 3) || version.major_version > 1 { let reply = conn