Hi,
On Thu, Apr 24, 2025, at 01:25, '
lu...@lufia.org' via plan9port-dev wrote:
> I am trying to use this on Sway.
> For now, it works almost fine. I'm very happy to use Japanese IM.
Thanks for testing it! On my end I've noticed that when devdraw signals support for text-input-v3 to Sway, Sway generates its own key repeat events by simulating repeated key presses when you hold a key down, but it does not disable application-side key repeat with a wl_keyboard::repeat_info(0, 0) message. The result is that key repeat with this patch is unusably high on my version of sway. I haven't fully diagnosed the issue yet.
> I am using fcitx5+mozc. For pop-up menu's position, it doesn't bother me at
> all.
Yes, I've actually grown to prefer the menu popping up in the same place. And as I write more I need it less and less, anyway.
> However, I noticed that INSTALL can't build fotnsrv if WSYSTYPE set to
> wayland because wayland.c does not exist in the directory. Is it expected?
fontsrv only uses freetype, and not any x11 libs, so you should be able to build it without setting WSYSTYPE, which would produce the "x11" binary that works just fine under wayland. I'm not sure how you built it, but I don't set WSYSTYPE in my environment or LOCAL.config before building. The devdraw mkfile checks XDG_SESSION_TYPE to see if it's running on wayland.
Of course you could patch src/cmd/fontsrv/mkfile to select the x11 files for WSYSTYPE=wayland, too.
David