Use input method's context for tracking focus states in OnGrabNotify.
Current implementation of RenderWidgetViewHostGtk::OnGrabNotify() records the focus state obtained by gtk_widget_is_focus() when other window get a grab, and set the stored state to the input context on ungrab notification. This CL changes to store the focus state of input context rather than gtk_widget_is_focus(), and resolves the inconsistency issue. BUG=chromium-os:15773 TEST=http://crosbug.com/15773#c20 Review URL: http://codereview.chromium.org/7548008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95573 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment