Closed Bug 1097238 Opened 10 years ago Closed 10 years ago

Non-ASCII input with GTK_IM_MODULE=xim broken after bug 1083067

Categories

(Core :: Widget: Gtk, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla36

People

(Reporter: jld, Assigned: masayuki)

References

Details

(Keywords: inputmethod, regression)

Attachments

(3 files)

I have GTK_IM_MODULE=xim set in my environment, and trying to input non-ASCII characters with the X11 Compose key (e.g., Compose-a-e for æ) no longer works as of this commit:

changeset:   214824:da7bac23b9f2
user:        Masayuki Nakano <masayuki@d-toybox.com>
date:        Mon Nov 10 18:07:42 2014 +0900
summary:     Bug 1083067 part.1 Create nsGtkIMModule::DispatchCompositionEventsForCommit() r=m_kato

I have logs from debug builds with NSPR_LOG_MODULES=nsGtkIMModuleWidgets:5 before and after that patch.
Oh, okay. That's very simple mistake. Thank you, the log really helped me!
Assignee: nobody → masayuki
Status: NEW → ASSIGNED
At using dead key, only OnCommitCompositionNative() is called. I.e., only commit string is notified by IME.

In DispatchCompositionChangeEvent(), this case causes dispatching compositionstart and commit the composition immediately.
http://mxr.mozilla.org/mozilla-central/source/widget/gtk/nsGtkIMModule.cpp#1043

So, DispatchCompositionEventsForCommit() should do it when commit string is not empty.
Attachment #8521167 - Flags: review?(m_kato)
Attachment #8521167 - Flags: review?(m_kato) → review+
https://hg.mozilla.org/mozilla-central/rev/ed429f98e1eb
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: