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

Issue 5417044: Use ibus_input_context_process_key_event_async in ibus-x11 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by fujiwara
Modified:
12 years, 5 months ago
Reviewers:
shawn.p.huang
CC:
shawn.p.huang_gmail.com
Base URL:
git://github.com/ibus/ibus.git@master
Visibility:
Public.

Description

Use ibus_input_context_process_key_event_async in ibus-x11 ibus-hangul calls ibus_commit_text() in process_key_event with returing FALSE. ibus_commit_text() is async API and there is a time issue in ibus_commit_text() and returning process_key_event. This fix adds async in ibus-x11 process_key_event too. BUG=RH#753781 TEST=Linux desktop

Patch Set 1 #

Total comments: 3

Patch Set 2 : Updated with Message #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -19 lines) Patch
M client/x11/main.c View 1 5 chunks +94 lines, -19 lines 0 comments Download

Messages

Total messages: 3
fujiwara
12 years, 5 months ago (2011-11-18 10:58:35 UTC) #1
Peng
lgtm with several comments http://codereview.appspot.com/5417044/diff/1/client/x11/main.c File client/x11/main.c (right): http://codereview.appspot.com/5417044/diff/1/client/x11/main.c#newcode530 client/x11/main.c:530: pfe = g_new0 (IMForwardEventStruct, 1); ...
12 years, 5 months ago (2011-11-18 14:56:33 UTC) #2
fujiwara
12 years, 5 months ago (2011-11-21 02:05:23 UTC) #3
On 2011/11/18 14:56:33, Peng wrote:
> lgtm with several comments
> 
> http://codereview.appspot.com/5417044/diff/1/client/x11/main.c
> File client/x11/main.c (right):
> 
> http://codereview.appspot.com/5417044/diff/1/client/x11/main.c#newcode530
> client/x11/main.c:530: pfe = g_new0 (IMForwardEventStruct, 1);
> suggest using g_slice_new0() and g_slice_free()
> 
> http://codereview.appspot.com/5417044/diff/1/client/x11/main.c#newcode536
> client/x11/main.c:536: memcpy (&pfe->event, xevent, sizeof (XKeyEvent));
> Suggest using same code in line 521 & 536
> 
> http://codereview.appspot.com/5417044/diff/1/client/x11/main.c#newcode552
> client/x11/main.c:552: #undef _XIM_COPY_XKEYEVENT
> What is it?

Thanks, I updated the patch.
Sign in to reply to this message.

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