~fcitx-team/fcitx/autoimport-fcitx-master

« back to all changes in this revision

Viewing changes to src/frontend/gtk2/fcitximcontext-gio.c

  • Committer: Weng Xuetian
  • Date: 2015-07-08 16:58:18 UTC
  • Revision ID: wengxt@gmail.com-20150708165818-ajovjg99uayb7pc7
[gtk] workaround chrome issue

Show diffs side-by-side

added added

removed removed

Lines of Context:
812
812
 
813
813
    fcitxcontext->has_focus = true;
814
814
 
 
815
    /*
 
816
     * Do not call gtk_im_context_focus_out() here.
 
817
     * This might workaround some chrome issue
 
818
     */
 
819
#if 0
815
820
    if (_focus_im_context != NULL) {
816
821
        g_assert (_focus_im_context != context);
817
822
        gtk_im_context_focus_out (_focus_im_context);
818
823
        g_assert (_focus_im_context == NULL);
819
824
    }
 
825
#endif
820
826
 
821
827
    if (fcitx_client_is_valid(fcitxcontext->client)) {
822
828
        fcitx_client_focus_in(fcitxcontext->client);