From 643cb6e87c10ab554c03ada81930001a8ebcc909 Mon Sep 17 00:00:00 2001 From: "Pierre-Loup A. Griffais" Date: Thu, 27 May 2010 09:11:50 -0700 Subject: Only deal with input code when changing the input shape. Propagate the shape kind all the way to SetShape to avoid performing non-input operations such as revalidating the tree and generating exposures when only changing a window's input shape. Signed-off-by: Pierre-Loup A. Griffais Acked-by: Aaron Plattner Reviewed-by: Daniel Stone Signed-off-by: Keith Packard --- Xext/shape.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Xext/shape.c') diff --git a/Xext/shape.c b/Xext/shape.c index 93e4703e9..86b0bc0ec 100644 --- a/Xext/shape.c +++ b/Xext/shape.c @@ -220,7 +220,7 @@ RegionOperate ( } if (srcRgn) REGION_DESTROY(pScreen, srcRgn); - (*pScreen->SetShape) (pWin); + (*pScreen->SetShape) (pWin, kind); SendShapeNotify (pWin, kind); return Success; } @@ -642,7 +642,7 @@ ProcShapeOffset (ClientPtr client) if (srcRgn) { REGION_TRANSLATE(pScreen, srcRgn, stuff->xOff, stuff->yOff); - (*pScreen->SetShape) (pWin); + (*pScreen->SetShape) (pWin, stuff->destKind); } SendShapeNotify (pWin, (int)stuff->destKind); return Success; -- cgit v1.2.3