[fusion-commits] Compiz mirror: Changes to 'master' (eea3a52d76e4750fcab18ff330e9274c0b7ba167)

compiz at server.opencompositing.org compiz at server.opencompositing.org
Thu Mar 27 09:16:05 CET 2008


New commits:
commit eea3a52d76e4750fcab18ff330e9274c0b7ba167
Author: Danny Baumann <dannybaumann at web.de>
Date:   Thu Mar 27 09:07:19 2008 +0100

    Recalculate window actions on frame size and transient status changes as the available actions depend on both.

commit 16fb71c9fd1e451b221b0242595abaf19ad1a2b0
Author: Danny Baumann <dannybaumann at web.de>
Date:   Thu Mar 27 09:01:15 2008 +0100

    Allow minimization for all normal type windows.


 src/event.c  |    3 +++
 src/window.c |    6 ++++--
 2 files changed, 7 insertions(+), 2 deletions(-)


Modified: compiz/src/event.c
===================================================================
--- compiz/src/event.c
+++ compiz/src/event.c
@@ -1520,7 +1520,10 @@ handleEvent (CompDisplay *d,
 	{
 	    w = findWindowAtDisplay (d, event->xproperty.window);
 	    if (w)
+	    {
 		updateTransientHint (w);
+		recalcWindowActions (w);
+	    }
 	}
 	else if (event->xproperty.atom == d->wmClientLeaderAtom)
 	{

Modified: compiz/src/window.c
===================================================================
--- compiz/src/window.c
+++ compiz/src/window.c
@@ -740,7 +740,7 @@ recalcWindowActions (CompWindow *w)
 	    CompWindowActionChangeDesktopMask;
 
 	/* allow minimization for dialog windows if they
-	   a) are not a transient (transients can be minimized 
+	   a) are not a transient (transients can be minimized
 	      with their parent)
 	   b) don't have the skip taskbar hint set (as those
 	      have no target to be minimized to)
@@ -758,7 +758,8 @@ recalcWindowActions (CompWindow *w)
 
     switch (w->wmType) {
     case CompWindowTypeNormalMask:
-	actions |= CompWindowActionFullscreenMask;
+	actions |= CompWindowActionFullscreenMask |
+	           CompWindowActionMinimizeMask;
     default:
 	break;
     }
@@ -1291,6 +1292,7 @@ setWindowFrameExtents (CompWindow	 *w,
 
 	updateWindowSize (w);
 	updateFrameWindow (w);
+	recalcWindowActions (w);
 
 	XChangeProperty (w->screen->display->display, w->id,
 			 w->screen->display->frameExtentsAtom,


More information about the commits mailing list