aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/jalv_gtk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jalv_gtk.c b/src/jalv_gtk.c
index 8ca8258..71259bd 100644
--- a/src/jalv_gtk.c
+++ b/src/jalv_gtk.c
@@ -1162,7 +1162,9 @@ jalv_ui_refresh_rate(Jalv* jalv)
GdkDisplay* const display = gdk_display_get_default();
GdkMonitor* const monitor = gdk_display_get_primary_monitor(display);
- return (float)gdk_monitor_get_refresh_rate(monitor);
+ const float rate = (float)gdk_monitor_get_refresh_rate(monitor);
+
+ return rate < 30.0f ? 30.0f : rate;
#endif
}