As the subject says, makes compiz work on a multi-screen setup.

tom
>From 3f823bfe1f6b3538e312fbf8854c6e2cd787b157 Mon Sep 17 00:00:00 2001
From: Tomas Carnecky <[EMAIL PROTECTED]>
Date: Fri, 12 Oct 2007 14:02:17 +0200
Subject: [PATCH] Start window decorator on all screens.

---
 plugins/decoration.c |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/plugins/decoration.c b/plugins/decoration.c
index ef68ba8..39670ab 100644
--- a/plugins/decoration.c
+++ b/plugins/decoration.c
@@ -1145,21 +1145,14 @@ decorSetDisplayOption (CompPlugin      *plugin,
     case DECOR_DISPLAY_OPTION_COMMAND:
 	if (compSetStringOption (o, value))
 	{
-	    if (display->screens && *o->value.s != '\0')
+	    CompScreen *s;
+
+	    for (s = display->screens; s; s = s->next)
 	    {
 		DECOR_SCREEN (display->screens);
 
-		/* run decorator command if no decorator is present on
-		   first screen */
 		if (!ds->dmWin)
-		{
-		    if (fork () == 0)
-		    {
-			putenv (display->displayString);
-			execl ("/bin/sh", "/bin/sh", "-c", o->value.s, NULL);
-			exit (0);
-		    }
-		}
+		    runCommand (s, o->value.s);
 	    }
 
 	    return TRUE;
-- 
1.5.3.4

_______________________________________________
compiz mailing list
compiz@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/compiz

Reply via email to