diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d6682ec2..f50757fd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ Unreleased` header. # Unreleased +- On X11, reduce the amount of time spent fetching screen resources. + # 0.29.7 - On X11, fix `Xft.dpi` reload during runtime. diff --git a/src/platform_impl/linux/x11/monitor.rs b/src/platform_impl/linux/x11/monitor.rs index a44e5458c..17ea959ee 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