--- 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--
Tomas Carnecky
2007-Oct-12 12:28 UTC
[compiz] [PATCH] Start window decorator on all screens.
As the subject says, makes compiz work on a multi-screen setup. tom -------------- next part -------------- A non-text attachment was scrubbed... Name: 0002-Start-window-decorator-on-all-screens.patch Type: text/x-patch Size: 0 bytes Desc: not available Url : http://lists.freedesktop.org/archives/compiz/attachments/20071012/32d12324/attachment.bin