Skip to content

Commit

Permalink
Bug 1145448 - Avoid painting native frame on fullscreen window when a…
Browse files Browse the repository at this point in the history
…ctivate/inactivate. r=jimm

--HG--
extra : source : 2142c3433366414d98da4008756932a8765c8a08
  • Loading branch information
upsuper committed Apr 13, 2015
1 parent f9a0328 commit 0125002
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion widget/windows/nsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4686,7 +4686,9 @@ nsWindow::ProcessMessage(UINT msg, WPARAM& wParam, LPARAM& lParam,
break;

// let the dwm handle nc painting on glass
if(nsUXThemeData::CheckForCompositor())
// Never allow native painting if we are on fullscreen
if(mSizeMode != nsSizeMode_Fullscreen &&
nsUXThemeData::CheckForCompositor())
break;

if (wParam == TRUE) {
Expand Down

0 comments on commit 0125002

Please sign in to comment.