[PATCH] Start window decorator on all screens.
Tomas Carnecky
tom at dbservice.com
Fri Oct 12 05:02:17 PDT 2007
---
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
--------------060706030707010404000400--
More information about the compiz
mailing list