mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 861332 - Ensure that the drawing rect used for DrawWindowOverlay doesn't depend on the window's position on the screen, so that for example the 10.6 window resizer is drawn in the correct place. r=mattwoodrow
--HG-- extra : rebase_source : d47ea3f871a619bfab065dd0eddb74d8c309fed1
This commit is contained in:
parent
22eb7c1ef4
commit
67e8c4fec5
@ -109,7 +109,6 @@ ClientLayerManager::BeginTransactionWithTarget(gfxContext* aTarget)
|
||||
// don't signal a new transaction to ShadowLayerForwarder. Carry on adding
|
||||
// to the previous transaction.
|
||||
ScreenOrientation orientation;
|
||||
nsIntRect clientBounds;
|
||||
if (TabChild* window = mWidget->GetOwningTabChild()) {
|
||||
orientation = window->GetOrientation();
|
||||
} else {
|
||||
@ -117,7 +116,9 @@ ClientLayerManager::BeginTransactionWithTarget(gfxContext* aTarget)
|
||||
hal::GetCurrentScreenConfiguration(¤tConfig);
|
||||
orientation = currentConfig.orientation();
|
||||
}
|
||||
nsIntRect clientBounds;
|
||||
mWidget->GetClientBounds(clientBounds);
|
||||
clientBounds.x = clientBounds.y = 0;
|
||||
ShadowLayerForwarder::BeginTransaction(mTargetBounds, mTargetRotation, clientBounds, orientation);
|
||||
|
||||
// If we're drawing on behalf of a context with async pan/zoom
|
||||
|
@ -777,7 +777,7 @@ CompositorOGL::BeginFrame(const Rect *aClipRectIn, const gfxMatrix& aTransform,
|
||||
// sent atomically with rotation changes
|
||||
nsIntRect intRect;
|
||||
mWidget->GetClientBounds(intRect);
|
||||
rect = gfxRect(intRect.x, intRect.y, intRect.width, intRect.height);
|
||||
rect = gfxRect(0, 0, intRect.width, intRect.height);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -786,6 +786,7 @@ LayerManagerOGL::Render()
|
||||
// thread, and undoes all the care we take with layers txns being
|
||||
// sent atomically with rotation changes
|
||||
mWidget->GetClientBounds(rect);
|
||||
rect.x = rect.y = 0;
|
||||
}
|
||||
}
|
||||
WorldTransformRect(rect);
|
||||
|
Loading…
Reference in New Issue
Block a user