[fusion-commits] compiz mirror: Changes to 'master' (c8185b08b281e7e91313745437bae52cfadbbbb2)

compiz at server.beryl-project.org compiz at server.beryl-project.org
Mon Jul 9 13:41:05 CEST 2007


New commits:
commit c8185b08b281e7e91313745437bae52cfadbbbb2
Author: Danny Baumann <dannybaumann at web.de>
Date:   Mon Jul 9 13:40:30 2007 +0200

    Fix missing damage at resize initiation.
    This caused the selection rectangle not being drawn properly when initiating resizing via keyboard.


 plugins/resize.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)


Modified: compiz/plugins/resize.c
===================================================================
--- compiz/plugins/resize.c
+++ compiz/plugins/resize.c
@@ -419,12 +419,19 @@ resizeInitiate (CompDisplay     *d,
 
 	if (rs->grabIndex)
 	{
+	    BoxRec box;
+
 	    rd->releaseButton = button;
 
 	    (w->screen->windowGrabNotify) (w, x, y, state,
 					   CompWindowGrabResizeMask |
 					   CompWindowGrabButtonMask);
 
+	    /* using the paint rectangle is enough here
+	       as we don't have any stretch yet */
+	    resizeGetPaintRectangle (d, &box);
+	    resizeDamageRectangle (w->screen, &box);
+
 	    if (state & CompActionStateInitKey)
 	    {
 		int xRoot, yRoot;


More information about the commits mailing list