diff options
-rw-r--r-- | chrome/views/window.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/views/window.cc b/chrome/views/window.cc index 93cb9fe..685545b 100644 --- a/chrome/views/window.cc +++ b/chrome/views/window.cc @@ -90,7 +90,10 @@ void Window::Show() { } void Window::Activate() { + if (IsMinimized()) + ::ShowWindow(GetHWND(), SW_RESTORE); ::SetWindowPos(GetHWND(), HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); + SetForegroundWindow(GetHWND()); } void Window::SetBounds(const gfx::Rect& bounds) { |