summaryrefslogtreecommitdiffstats
path: root/ui/aura/root_window_host_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/aura/root_window_host_win.cc')
-rw-r--r--ui/aura/root_window_host_win.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/aura/root_window_host_win.cc b/ui/aura/root_window_host_win.cc
index f21170c..cb1cd7d 100644
--- a/ui/aura/root_window_host_win.cc
+++ b/ui/aura/root_window_host_win.cc
@@ -10,7 +10,6 @@
#include "base/message_loop.h"
#include "ui/aura/client/capture_client.h"
-#include "ui/aura/env.h"
#include "ui/aura/root_window.h"
#include "ui/base/cursor/cursor_loader_win.h"
#include "ui/base/events/event.h"
@@ -257,6 +256,14 @@ LRESULT RootWindowHostWin::OnCaptureChanged(UINT message,
return 0;
}
+LRESULT RootWindowHostWin::OnNCActivate(UINT message,
+ WPARAM w_param,
+ LPARAM l_param) {
+ if (!!w_param)
+ delegate_->OnHostActivated();
+ return DefWindowProc(hwnd(), message, w_param, l_param);
+}
+
void RootWindowHostWin::OnPaint(HDC dc) {
delegate_->OnHostPaint();
ValidateRect(hwnd(), NULL);