From cf814cd9d11d9e7bdb725268b09e29ca5f268145 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 9 Feb 2024 23:04:12 +0900 Subject: [PATCH] [input] Fully initialize the focus event --- libs/input/in_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/input/in_event.c b/libs/input/in_event.c index 6c8f257f7..9ae74d5d0 100644 --- a/libs/input/in_event.c +++ b/libs/input/in_event.c @@ -107,7 +107,7 @@ IE_Set_Focus (int handle) { unsigned h = handle; if (h < ie_handlers.size && ie_handlers.a[handle].handler && focus != h) { - IE_event_t event; + IE_event_t event = { }; event.type = ie_lose_focus; IE_Send_Event (&event); focus = handle;