diff --git a/browser/native_window_gtk.cc b/browser/native_window_gtk.cc index 711b8b9bc32c..8b9ecc217c8b 100644 --- a/browser/native_window_gtk.cc +++ b/browser/native_window_gtk.cc @@ -88,6 +88,9 @@ void NativeWindowGtk::Move(const gfx::Rect& pos) { } void NativeWindowGtk::Focus(bool focus) { + if (!IsVisible()) + return; + if (focus) gtk_window_present(window_); else