From 5a1478c1b434931455337ecab126c6b6015d7eac Mon Sep 17 00:00:00 2001 From: "jcampan@chromium.org" Date: Fri, 27 Feb 2009 02:00:27 +0000 Subject: Not DefProc'ing the NCActivate seems to cause the process not to be shown as activate when originally shown. BUG=4513 TEST=Start Chrome, the Chrome entry in the task bar should be shown as active. R=ben Review URL: http://codereview.chromium.org/28240 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10566 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/views/custom_frame_window.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chrome/views') diff --git a/chrome/views/custom_frame_window.cc b/chrome/views/custom_frame_window.cc index 79ce069..110750f 100644 --- a/chrome/views/custom_frame_window.cc +++ b/chrome/views/custom_frame_window.cc @@ -997,7 +997,10 @@ LRESULT CustomFrameWindow::OnNCActivate(BOOL active) { PaintNow(root_view_->GetScheduledPaintRect()); } - return TRUE; + // Defering to our parent as it is important that the NCActivate message gets + // DefProc'ed or the task bar won't show our process as active. + // See bug http://crbug.com/4513. + return Window::OnNCActivate(active); } LRESULT CustomFrameWindow::OnNCCalcSize(BOOL mode, LPARAM l_param) { -- cgit v1.1