Closed Bug 110413 Opened 23 years ago Closed 13 years ago

Mozilla XIM needs to call gdk_im_end() at UnsetFocus

Categories

(Core :: Widget: Gtk, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: masaki.katakai, Unassigned)

Details

(Keywords: inputmethod)

This bug came from bug 109723.

Mozilla gtk widget now doesn't call gdk_im_end() when it's losing input focus.
It looks OK for IMEs but some IME want to know the sate of "losing focus" to
manage preedit and status. The codes would be very simple but we need to test
carefully.

 nsWindow::IMEUnsetFocusWindow()
 {
   KillICSpotTimer();
+  nsIMEGtkIC *xic = IMEGetInputContext(PR_FALSE);
+  if (xic) {
+    xic->UnsetFocusWindow();
+  }
 }
There is a problem that some IME's lookup (candidate window)
grabs the input focus and causes problem if gdk_im_end() is
called, e.g. ATOK12 on Solaris 8.

I would like to continue to use the currect codes.

Severity: normal → enhancement
Status: NEW → ASSIGNED
Target Milestone: --- → Future
QA Contact: teruko → i18n
gdk_im_end() is deprecated. If you see similar trouble on gtk2 build, please file a new bug.
Assignee: masaki.katakai → nobody
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Component: Internationalization → Widget: Gtk
QA Contact: i18n → gtk
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.