Skip to content

fix(HUB-8746): scale X11 from GDK_SCALE, wait for XIM handshake - #28

Merged
chris-addison merged 2 commits into
unity/hub-consolidatedfrom
unity/HUB-8746-x11-gdk-scale-xim
Nov 11, 2026
Merged

chris-addison merged 2 commits into
unity/hub-consolidatedfrom
unity/HUB-8746-x11-gdk-scale-xim

Conversation

@chris-addison

Copy link
Copy Markdown
Collaborator

Claudistopher Claudistopher:

Two X11 fixes from longbridge/gpui-fast (HUB-8746).

  • Scale: GDK_SCALE (a positive whole number) is used after Xft.dpi and before the RandR DPI guess. Sessions with no Xft.dpi that scale by 2 no longer get 1.4167.
  • XIM: enable_ime returns until the XIM handshake has created its input context. Creating one earlier names input method 0, and fcitx5 answers with an error that drops XIM for the session.
  • Tests: parse_gdk_scale and the handshake gate have unit tests in x11/client.rs.

Not tested: no Linux X11 session here. Logic checked standalone on macOS; the Linux crate could not be cross-checked (no C toolchain or fontconfig). Linux CI is the first compile.

🤖 Generated with Claude Code

…reateIc (HUB-8746)

Ports longbridge/gpui-fast 231f2cd and 5451231 into x11/client.rs.
@chris-addison
chris-addison marked this pull request as ready for review November 11, 2026 01:59
@chris-addison
chris-addison merged commit ab8014b into unity/hub-consolidated Nov 11, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant