Mitchell Hashimoto 9de5d991a2 core: detect inputs that result in surface close and avoid segfault
Fixes #965

When processing keybindings that closed the surface (`close_surface`,
`close_window`), the surface and associated runtime structures would be
freed so we could segfault.

This PR introduces a new enum result for input events (only key for now)
that returns whether an event resulted in a close. In this case, callers
can properly return immediately and avoid writing to deallocated memory.
2023-12-07 10:24:39 -08:00
..
2023-10-24 15:02:26 -07:00
2023-11-30 22:04:34 +01:00
2023-11-30 21:41:33 +01:00
2023-06-30 12:15:31 -07:00
2023-09-23 22:46:16 -07:00
2023-11-30 21:41:33 +01:00
2023-11-29 15:30:21 -08:00
2023-11-30 21:58:14 +01:00
2023-11-29 15:30:22 -08:00
2023-09-20 12:35:52 -07:00
2023-11-29 15:30:21 -08:00
2022-08-18 11:42:32 -07:00
2023-11-30 21:40:01 +01:00
2023-11-17 21:50:35 -08:00
2023-08-08 14:27:34 +02:00