Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(6333)

Issue 4273111: Verify global engine after changing preload_engines (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by Peng
Modified:
13 years, 1 month ago
Reviewers:
Peng Huang, Yusuke Sato
CC:
satorux
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

Verify global engine after changing preload_engines BUG=http://crosbug.com/13406 TEST=Linux desktop

Patch Set 1 #

Patch Set 2 : Update #

Patch Set 3 : Remove some space #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -9 lines) Patch
M bus/ibusimpl.c View 1 2 6 chunks +20 lines, -9 lines 5 comments Download

Messages

Total messages: 4
Peng Huang
13 years, 1 month ago (2011-03-25 14:09:58 UTC) #1
Yusuke Sato
Thanks for fixing this quickly. LGTM http://codereview.appspot.com/4273111/diff/2001/bus/ibusimpl.c File bus/ibusimpl.c (right): http://codereview.appspot.com/4273111/diff/2001/bus/ibusimpl.c#newcode164 bus/ibusimpl.c:164: static void bus_ibus_impl_global_engine_check ...
13 years, 1 month ago (2011-03-25 14:43:15 UTC) #2
Peng Huang
http://codereview.appspot.com/4273111/diff/2001/bus/ibusimpl.c File bus/ibusimpl.c (left): http://codereview.appspot.com/4273111/diff/2001/bus/ibusimpl.c#oldcode838 bus/ibusimpl.c:838: bus_ibus_impl_reload_config (ibus); ibus->config is NULL here. So call bus_ibus_impl_reload_config() ...
13 years, 1 month ago (2011-03-25 15:07:01 UTC) #3
Yusuke Sato
13 years, 1 month ago (2011-03-25 15:12:03 UTC) #4
thanks, lgtm.

On 2011/03/25 15:07:01, Peng Huang wrote:
> http://codereview.appspot.com/4273111/diff/2001/bus/ibusimpl.c
> File bus/ibusimpl.c (left):
> 
> http://codereview.appspot.com/4273111/diff/2001/bus/ibusimpl.c#oldcode838
> bus/ibusimpl.c:838: bus_ibus_impl_reload_config (ibus);
> ibus->config is NULL here. So call bus_ibus_impl_reload_config() will do
noting
> 
> http://codereview.appspot.com/4273111/diff/2001/bus/ibusimpl.c
> File bus/ibusimpl.c (right):
> 
> http://codereview.appspot.com/4273111/diff/2001/bus/ibusimpl.c#newcode164
> bus/ibusimpl.c:164: static void     bus_ibus_impl_global_engine_check
> On 2011/03/25 14:43:15, Yusuke Sato wrote:
> > I think bus_ibus_impl_check_global_engine() might be more consistent naming,
> but
> > it's up to you.
> 
> Done.
> 
> http://codereview.appspot.com/4273111/diff/2001/bus/ibusimpl.c#newcode841
> bus/ibusimpl.c:841: /* focus the fake_context, if use_global_engine is
enabled.
> */
> On 2011/03/25 14:43:15, Yusuke Sato wrote:
> > Can you briefly let me know the reason why you changed this part?
> > It's not so clear to me.
> >
> It fixes a bug that found in testing this CL.
> 
> If the use_global_engine is TRUE, and no real context has focus, the
> ibus->focused_context should be ibus->fake_context. You could check code in
> bus_ibus_impl_set_focused_context (). But at the begin of ibus-daemon starting
> up, ibus->focused_context is NULL, when a real context get focus at some time,
> ibus will in some wrong state. So I need set it to fake_context, if
> use_gloable_engine is TRUE (it is true in our cros branch).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b