mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Fixed and invalidate in showwindow. r=sfraser,rods.
This commit is contained in:
parent
0fdea11231
commit
f6b5ff74f3
@ -542,8 +542,21 @@ NS_IMETHODIMP nsMacWindow::Show(PRBool bState)
|
||||
{
|
||||
if ( mAcceptsActivation )
|
||||
{
|
||||
Rect windowrect;
|
||||
Point topleft,botright;
|
||||
|
||||
::ShowWindow(mWindowPtr);
|
||||
::SelectWindow(mWindowPtr);
|
||||
windowrect = (**((WindowPeek)mWindowPtr)->contRgn).rgnBBox;
|
||||
|
||||
// on some windows (with pop ups) the ::ShowWindow will not invalidate the parent
|
||||
// properly
|
||||
topleft = topLeft(windowrect);
|
||||
GlobalToLocal(&topleft);
|
||||
botright = botRight(windowrect);
|
||||
GlobalToLocal(&botright);
|
||||
SetRect(&windowrect,topleft.h,topleft.v,botright.h,botright.v);
|
||||
::InvalRect(&windowrect);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user