Optimize focus_in to avoid call some UI blocking functions.
authorPeng Huang <shawn.p.huang@gmail.com>
Tue, 1 Mar 2011 20:34:37 +0000 (15:34 -0500)
committerPeng Huang <shawn.p.huang@gmail.com>
Tue, 1 Mar 2011 20:34:37 +0000 (15:34 -0500)
commit279ee5d5b3697b427cc22cd99a55f4e611318e25
tree0333268e19790ad954dece59f9646d234c894ce0
parent690be230c116afd52a6002d2ef92b56e28d829b1
Optimize focus_in to avoid call some UI blocking functions.

focus_in calls some X blocking functions. It will block UI. This change delays the X blocking calls to idle callback, to avoid blocking UI.

BUG=http://crbug.com/74237
TEST=Linux desktop

Review URL: http://codereview.appspot.com/4254048
client/gtk2/ibusimcontext.c