Code Monkey home page Code Monkey logo

Comments (13)

wengxt avatar wengxt commented on August 29, 2024 1

Actually I just noticed that st use a very small buffer for key string, so it will not commit string longer than 32 bytes from im. Probably you should report this to st upstream (looking for the caller of XmbLookupString). Comparing to xterm, xterm uses 500 bytes as the buffer, which should be practical for any common usage.

from fcitx5.

wengxt avatar wengxt commented on August 29, 2024

it's irrelevant IMHO. I think the cause is same as #30.

from fcitx5.

wengxt avatar wengxt commented on August 29, 2024

Should be improved after 75d5cbd .

from fcitx5.

pickfire avatar pickfire commented on August 29, 2024

The issue still persists even in the latest commit. r435.8d889da-1 guess maybe I should go and check on the st side. Changing the buffer size for XmbLookupString to 500 does not seem to fix it either.

from fcitx5.

pickfire avatar pickfire commented on August 29, 2024

In the meantime, I increased the buffer from 32 to 64 to take in middle to long string from IME, so it should even work for sentences now, the patch was included in upstream https://git.suckless.org/st/commit/895e5b50a8cc835c19a45e1e328eb4dc78f5fd0c.html.

from fcitx5.

wengxt avatar wengxt commented on August 29, 2024

Tried multiple different xim based application (gtk-xim, xterm) non of them have the same problem. So I don't think the issue is in fcitx. I suspect st misses some XFlush call.

from fcitx5.

pickfire avatar pickfire commented on August 29, 2024

But I tried using old fcitx and it works fine, okay I will check on the XFlush call.

from fcitx5.

pickfire avatar pickfire commented on August 29, 2024

I believe it probably have something to do with high autorepeat I did with xset r rate 150 60, when I did not set that, it works nicely.

from fcitx5.

wengxt avatar wengxt commented on August 29, 2024

from fcitx5.

pickfire avatar pickfire commented on August 29, 2024

Ah, I believed I spot the issue in st, it was introduced in https://git.suckless.org/st/commit/e85b6b64660214121164ea97fb098eaa4935f7db.html#h0-0-3 where xximspot to update the cursor for XIM is called in every draw.

from fcitx5.

pickfire avatar pickfire commented on August 29, 2024

Weird that XNPreeditStartCallback is not called on fcitx, but ibus is able to recognize that. Should i not use XIMPreeditCallbacks?

from fcitx5.

wengxt avatar wengxt commented on August 29, 2024

from fcitx5.

pickfire avatar pickfire commented on August 29, 2024

Okay, thanks a lot for the input. st is also using over-the-spot for now. I also found a patch to fix the repeated key issue, looks like this is an issue with st, not fcitx5 but just that it doesn't happen in fcitx.

from fcitx5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.