forked from 12to11/12to11
Fix damage unioning upon ViewMove
* subcompositor.c (ViewMove): Union previous damage at right place.
This commit is contained in:
parent
6ad5901c97
commit
0a68122e52
1 changed files with 7 additions and 5 deletions
|
@ -1647,6 +1647,13 @@ ViewMove (View *view, int x, int y)
|
||||||
view->x = x;
|
view->x = x;
|
||||||
view->y = y;
|
view->y = y;
|
||||||
|
|
||||||
|
/* If the subcompositor is not garbaged, then damage the union
|
||||||
|
of the previous view bounds and the current view bounds.
|
||||||
|
This part calculates the previous view bounds. */
|
||||||
|
|
||||||
|
if (view->subcompositor && !IsGarbaged (view->subcompositor))
|
||||||
|
ViewUnionInferiorBounds (view, &damage);
|
||||||
|
|
||||||
if (view->parent)
|
if (view->parent)
|
||||||
{
|
{
|
||||||
view->abs_x = view->parent->abs_x + x;
|
view->abs_x = view->parent->abs_x + x;
|
||||||
|
@ -1720,13 +1727,8 @@ ViewMove (View *view, int x, int y)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If the subcompositor is not garbaged, then damage the union
|
|
||||||
of the previous view bounds and the current view bounds. */
|
|
||||||
if (view->subcompositor)
|
if (view->subcompositor)
|
||||||
{
|
{
|
||||||
if (!IsGarbaged (view->subcompositor))
|
|
||||||
ViewUnionInferiorBounds (view, &damage);
|
|
||||||
|
|
||||||
/* Update the subcompositor bounds. */
|
/* Update the subcompositor bounds. */
|
||||||
SubcompositorUpdateBounds (view->subcompositor, doflags);
|
SubcompositorUpdateBounds (view->subcompositor, doflags);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue