Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5186)

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 5372001: [cros] Fix two issues related to gtk im context support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update according to review feedback. Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/renderer_host/gtk_im_context_wrapper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_gtk.cc
diff --git a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
index 9d824fcd9f9b032b335f4480095c097c52c640f0..b14fdcbdefd8ae9ccf1df65f72f4e789a4cc7044 100644
--- a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
+++ b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc
@@ -200,6 +200,9 @@ class RenderWidgetHostViewGtkWidget {
if (!host_view->is_showing_context_menu_)
host_view->GetRenderWidgetHost()->Blur();
+ // Prevents us from stealing input context focus in OnGrabNotify() handler.
+ host_view->was_focused_before_grab_ = false;
+
// Disable the GtkIMContext object.
host_view->im_context_->OnFocusOut();
« no previous file with comments | « chrome/browser/renderer_host/gtk_im_context_wrapper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698