From 2467a997f4711c8ffcca67ad9cdccf5411795726 Mon Sep 17 00:00:00 2001 From: Abendstolz Date: Sat, 22 Jun 2019 18:48:51 +0200 Subject: [PATCH] [#963] Change XRandR display size check to also take height into account (#964) --- src/platform_impl/linux/x11/util/randr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_impl/linux/x11/util/randr.rs b/src/platform_impl/linux/x11/util/randr.rs index 347e9fad..1e9a41c6 100644 --- a/src/platform_impl/linux/x11/util/randr.rs +++ b/src/platform_impl/linux/x11/util/randr.rs @@ -22,7 +22,7 @@ pub fn calc_dpi_factor( } // See http://xpra.org/trac/ticket/728 for more information. - if width_mm == 0 || width_mm == 0 { + if width_mm == 0 || height_mm == 0 { warn!("XRandR reported that the display's 0mm in size, which is certifiably insane"); return 1.0; }