diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 23:31:48 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 23:31:48 +0000 |
commit | 7d59ee27d5a18e78ac732e559549311895be0eb5 (patch) | |
tree | 0036df351190c3d66094309d09911f991282bc4c | |
parent | fbb959cbbd75c6dd51cb283464d60deccf947c9e (diff) | |
download | chromium_src-7d59ee27d5a18e78ac732e559549311895be0eb5.zip chromium_src-7d59ee27d5a18e78ac732e559549311895be0eb5.tar.gz chromium_src-7d59ee27d5a18e78ac732e559549311895be0eb5.tar.bz2 |
Linux: Don't try to special case webkit blur when we stop showing right click context menu.
After I spent more time investigating, it seems that when the popup menu closes, it always returns focus to the toplevel that previously had it. Thus we don't have to worry about some other toplevel getting focus without us getting another focus-out.
BUG=13554
TEST=right click spellcheck correction works in gmail
Review URL: http://codereview.chromium.org/126301
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18667 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host_view_gtk.cc | 6 |
1 files changed, 1 insertions, 5 deletions
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 87d1f71..7a55322 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc +++ b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc @@ -144,7 +144,7 @@ class RenderWidgetHostViewGtkWidget { } static gboolean OnFocusOut(GtkWidget* widget, GdkEventFocus* focus, - RenderWidgetHostViewGtk* host_view) { + RenderWidgetHostViewGtk* host_view) { // Whenever we lose focus, set the cursor back to that of our parent window, // which should be the default arrow. gdk_window_set_cursor(widget->window, NULL); @@ -456,10 +456,6 @@ void RenderWidgetHostViewGtk::PasteFromSelectionClipboard() { void RenderWidgetHostViewGtk::ShowingContextMenu(bool showing) { is_showing_context_menu_ = showing; - // Note that GTK_WIDGET_HAS_FOCUS differs from gtk_widget_is_focus() in that - // the latter doesn't care whether the toplevel has focus. - if (!showing && !GTK_WIDGET_HAS_FOCUS(view_.get())) - GetRenderWidgetHost()->Blur(); } BackingStore* RenderWidgetHostViewGtk::AllocBackingStore( |