-
Notifications
You must be signed in to change notification settings - Fork 134
exwm-input--update-focus cause key not sent to input-method-function #705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think the fix will be: if the focus did not change, don't run that function. |
Seems to be fixed by #706 |
That change may have some unintended side effects I'm afraid. I wonder why there was a change in buffer-list. I didn't find the definition of |
rime-input-method is my simplified chinese input method: There might be better fix if we know the reason for the issue. |
The change in buffer-list is probably because I use a temporary buffer for the preedit. Also exwm-xim has a " *temp*" buffer. |
I've not tried it myself but it seems your input method does call functions like |
What about let-bind |
No, "let-bind exwm-input--skip-buffer-list-update to t" doesn't work.
and in my input method:
I have type 7 key 118, and the last one is lost, see the debug output: https://gist.github.com/QiangF/721dec58a86405dc72fdde3dfade2c61 |
There are many other command that create invisible buffers, to find out each of them is impossible. If both the focused buffer and the current window doesn't change, does that mean the focus has not changed? why do you need to update the focus in this case? |
No. All X clients can change input focus, or we won't have to take the trouble to set it every possible time. |
I think there are 3 possible solutions:
|
Solution 2 is the most nature way to go if feasible. There was a implementation which can be broken sometimes. You can stick to that PR until we work out another implementation. |
Uh oh!
There was an error while loading. Please reload this page.
See the debug log here,
https://gist.github.com/QiangF/3da9f935354d31657a056ef31c6127cf
Every time exwm-input--update-focus is run, one key (118) is not processed by the input method, the focused window does not changing,, the focus actually does not need update. Is the input method disabled during that instant?
The text was updated successfully, but these errors were encountered: