summaryrefslogtreecommitdiffstats
path: root/views/window/window_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/window/window_win.cc')
-rw-r--r--views/window/window_win.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/views/window/window_win.cc b/views/window/window_win.cc
index ac347f5..af03463 100644
--- a/views/window/window_win.cc
+++ b/views/window/window_win.cc
@@ -244,6 +244,12 @@ void WindowWin::Activate() {
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