Index: views/window/window_win.cc |
=================================================================== |
--- views/window/window_win.cc (revision 55530) |
+++ views/window/window_win.cc (working copy) |
@@ -244,6 +244,12 @@ |
SetForegroundWindow(GetNativeView()); |
} |
+void WindowWin::Deactivate() { |
+ HWND hwnd = ::GetNextWindow(GetNativeView(), GW_HWNDNEXT); |
+ if (hwnd) |
+ ::SetForegroundWindow(hwnd); |
+} |
+ |
void WindowWin::Close() { |
if (window_closed_) { |
// It appears we can hit this code path if you close a modal dialog then |