gtk: Window.focus should not change visibility.

This commit is contained in:
Cheng Zhao 2014-02-21 15:34:38 +08:00
parent eb9673a152
commit 6c36f7e5c9

View file

@ -88,6 +88,9 @@ void NativeWindowGtk::Move(const gfx::Rect& pos) {
} }
void NativeWindowGtk::Focus(bool focus) { void NativeWindowGtk::Focus(bool focus) {
if (!IsVisible())
return;
if (focus) if (focus)
gtk_window_present(window_); gtk_window_present(window_);
else else