From b0a42784f1143051313832bf9b6ef2b7afbe2656 Mon Sep 17 00:00:00 2001 From: Dery Almas Date: Thu, 27 Nov 2025 19:50:42 +0100 Subject: [PATCH] Wayland: Fix SIGFPE with repeat rate of 0 We always divided by the rate, which could be zero, which is a valid value (it means "disable key repeating"). --- platform/linuxbsd/wayland/wayland_thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/linuxbsd/wayland/wayland_thread.cpp b/platform/linuxbsd/wayland/wayland_thread.cpp index 50e3d11a74e..b0131f48bf1 100644 --- a/platform/linuxbsd/wayland/wayland_thread.cpp +++ b/platform/linuxbsd/wayland/wayland_thread.cpp @@ -2295,7 +2295,7 @@ void WaylandThread::_wl_keyboard_on_repeat_info(void *data, struct wl_keyboard * SeatState *ss = (SeatState *)data; ERR_FAIL_NULL(ss); - ss->repeat_key_delay_msec = 1000 / rate; + ss->repeat_key_delay_msec = rate ? 1000 / rate : 0; ss->repeat_start_delay_msec = delay; }