From c697f8ee80145e143c99908e50edfe575ecf9d0f Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Fri, 23 Apr 2021 21:13:50 +0200 Subject: [PATCH] print 144 instead of 145 refresh rate as this rate is more common --- src/modules/resolution_wayland.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/resolution_wayland.c b/src/modules/resolution_wayland.c index e7e4e0801..0ecf9e665 100644 --- a/src/modules/resolution_wayland.c +++ b/src/modules/resolution_wayland.c @@ -64,6 +64,10 @@ static int parseRefreshRate(int32_t refreshRate) else refreshRate -= remainder; + //All other typicall refresh rates are dividable by 5 + if(refreshRate == 145) + refreshRate = 144; + return refreshRate; }