Files
oak-gpui/crates/gpui/src
smit 23d0433158 linux: Fix keyboard events not working on first start in X11 (#36224)
Closes #29083

On X11, `ibus-x11` crashes on some distros after Zed interacts with it.
This is not unique to Zed, `xim-rs` shows the same behavior, and there
are similar upstream `ibus` reports with apps like Blender:

- https://github.com/ibus/ibus/issues/2697

I opened an upstream issue to track this:

- https://github.com/ibus/ibus/issues/2789

When this crash happens, we don’t get a disconnect event, so Zed keeps
sending events to the IM server and waits for a response. It works on
subsequent starts because IM server doesn't exist now and we default to
non-XIM path.

This PR detects the crash via X11 events and falls back to the non-XIM
path so typing keeps working. We still need to investigate whether the
root cause is in `xim-rs` or `ibus-x11`.

Release Notes:

- Fixed an issue on X11 where keyboard input sometimes didn’t work on
first start.
2025-08-15 12:51:32 +05:30
..
2025-08-06 00:02:26 +00:00
2025-08-01 19:46:09 +02:00
2025-07-19 01:27:54 +00:00
2025-08-14 00:01:17 +00:00
2025-08-11 19:17:48 +02:00
2025-08-14 00:01:17 +00:00
2025-08-14 00:01:17 +00:00
2025-08-14 00:01:17 +00:00
2025-08-11 19:17:48 +02:00