-
Notifications
You must be signed in to change notification settings - Fork 174
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
Changing focus with pre-edit buffer candidate types it in other window #2063
Comments
I think the result is same. Did you use Alt-tab? |
Ah, it seems to differ slightly between Alt-Tab and click-to-focus behaviour! I was just clicking between apps before.
Oddly, I've also noticed that Firefox leaves the pre-edit text behind as final text when it's the origin app (so the α appears in both apps), but other apps cancel the pre-edit and don't leave α behind in the origin app. That seems to be to do with how it handles focus change while there's pre-edit text rather than being triggered by the subsequent typing, though. |
I think your testings are in the much better progress.
Seems you clicked the input fields instead of the title bars of the windows or you didn't install a patch. I think now other two patches resolve this issue in https://github.com/fujiwarat/ibus/commits/compose-clear-focus NOTE: you need to update both GTK2 and GTK3 im-ibus.so of the patches. Firefox has an ability to commit the preedit forcibly for some reasons (I don't know why but Firefox has several features likes prediction features) and the current ibus overrides it and lets each ibus engine choose the clear or commit but I will change the behavior later again after I close this issue.
|
Strange. I was running "compose-tentative" built from Git, so it should have had that patch. I can't recreate the bug on click between GTK apps, though (either by clicking the title bar or straight in to an input box)
Confirmed - I can't seem to trigger the bug when running fujiwarat/ibus@7f976b3
This does still seem to happen (Firefox turns the pre-edit text into finalised text on focus change), but it sounds like you're treating that as a separate issue. Thanks. |
Thank you for your test. |
Please fill in the following items if you don't know the root cause.
Which distribution and version?:
openSUSE Tumbleweed
Which desktop environment and version?:
Gnome 3.30
Which session type?:
X11
Which application and version?:
From any (GTK?) app to Mozilla apps
(Tested Corebird 1.7.4, Geany 1.33 and GEdit 3.30 to Firefox 63.0.3 and Thunderbird 60.3.1)
IBus version?:
"compose-tentative" branch
Issue description:
If you type a pre-edit candidate in "compose" mode and then focus Firefox and type a character then the pre-edit candidate will be typed before the character you typed. The same behaviour doesn't happen between Firefox and other apps, or between other apps.
This may be a Firefox bug, but I didn't know whether there was something that ibus isn't cancelling soon enough that Firefox is picking up on but other (GTK?) apps are handling correctly.
Steps to reproduce:
Expected behaviour: Pre-edit is cancelled in GEdit. Firefox types "b".
Actual behaviour: Pre-edit is cancelled in GEdit. Firefox types "αb"
Can you reproduce your problem when you restart ibus-daemon? (yes / no):
Yes
Do you see any errors when you run ibus-daemon with the verbose option?:
No
Can you reproduce your problem with a new user account instead of the current your account? (yes / no):
Not tested
The text was updated successfully, but these errors were encountered: