Bug 586219: Title bar is not updated when switching tabs. r=roc a=blocker
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Thu, 12 Aug 2010 14:54:48 -0700
changeset 50350 a16044df722356de0d3855079230c65a25b64fa2
parent 50349 abf7063bba5170fef5ce788ad63ba7da1ce3d09b
child 50351 e4bbf50a29f2fe5a396d9fa26b1b729ff28c7d25
push idunknown
push userunknown
push dateunknown
reviewersroc, blocker
bugs586219
milestone2.0b4pre
Bug 586219: Title bar is not updated when switching tabs. r=roc a=blocker
widget/src/windows/nsWindow.cpp
--- a/widget/src/windows/nsWindow.cpp
+++ b/widget/src/windows/nsWindow.cpp
@@ -4754,17 +4754,17 @@ PRBool nsWindow::ProcessMessage(UINT msg
     }
 
     case WM_SETTEXT:
       /*
        * WM_SETTEXT paints the titlebar area. Avoid this if we have a
        * custom titlebar we paint ourselves.
        */
 
-      if (mNonClientMargins.top == -1)
+      if (!mCustomNonClient || mNonClientMargins.top == -1)
         break;
 
       {
         // From msdn, the way around this is to disable the visible state
         // temporarily. We need the text to be set but we don't want the
         // redraw to occur.
         DWORD style = GetWindowLong(mWnd, GWL_STYLE);
         SetWindowLong(mWnd, GWL_STYLE, style & ~WS_VISIBLE);