From 6c36f7e5c96850fd65a11d52a4e523e9c605a542 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 21 Feb 2014 15:34:38 +0800 Subject: [PATCH] gtk: Window.focus should not change visibility. --- browser/native_window_gtk.cc | 3 +++ 1 file changed, 3 insertions(+) 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