Files
kitty/glfw
copilot-swe-agent[bot] 9b9bfeb02d Fix XI_BadDevice crash on USB device disconnect (#9723)
When a USB HID device (keyboard/mouse) is disconnected, X11 fires an
XI_HierarchyChanged event, which triggers read_xi_scroll_devices().
That function calls XIGetProperty() on devices from XIQueryDevice().
There is a race condition: if a device is removed between these calls,
X11 generates an XI_BadDevice error. Without a custom error handler, the
default X11 handler calls exit(), killing kitty.

Fix: wrap the device query loop in read_xi_scroll_devices() with
_glfwGrabErrorHandlerX11() / _glfwReleaseErrorHandlerX11() so that any
XI_BadDevice error is captured by kitty's own handler rather than the
default fatal one.

Fixes #9723
Fixes #9724
2026-03-22 07:52:49 +05:30
..
2026-02-07 23:11:42 +05:30
2025-08-16 07:38:54 +05:30
2024-06-02 19:24:00 +05:30
2026-03-21 08:41:47 +05:30
2025-08-16 07:38:54 +05:30
2025-03-12 09:26:36 +05:30
...
2025-11-22 20:03:01 +05:30
2025-05-13 15:29:37 +05:30
2026-02-23 07:44:58 +05:30
2026-02-22 15:36:10 +05:30
2025-08-16 07:38:54 +05:30
...
2026-02-22 16:48:59 +05:30
2025-08-16 07:38:54 +05:30
2025-08-16 07:38:54 +05:30