~compiz-team/compiz/compiz.fix_1077866

« back to all changes in this revision

Viewing changes to debian/patches/ccp_plugin.patch

first packaging

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: compiz-0.9.8/src/main.cpp
 
2
===================================================================
 
3
--- compiz-0.9.8.orig/src/main.cpp      2012-05-29 12:09:56.000000000 +0200
 
4
+++ compiz-0.9.8/src/main.cpp   2012-05-30 16:29:24.940570174 +0200
 
5
@@ -146,23 +146,25 @@
 
6
 
 
7
     modHandler = new ModifierHandler ();
 
8
 
 
9
-    if (!initialPlugins.empty ())
 
10
-    {
 
11
-       CompOption::Value::Vector list;
 
12
-        CompOption::Value         value;
 
13
+    CompOption::Value::Vector list;
 
14
+    CompOption::Value         value;
 
15
        CompOption                *o = screen->getOption ("active_plugins");
 
16
 
 
17
+    if (!initialPlugins.empty ())
 
18
+    {
 
19
        foreach (CompString &str, initialPlugins)
 
20
        {
 
21
            value.set (str);
 
22
            list.push_back (value);
 
23
        }
 
24
+    }
 
25
+    else
 
26
+       list.push_back ("ccp");
 
27
 
 
28
        value.set (CompOption::TypeString, list);
 
29
 
 
30
        if (o)
 
31
            o->set (value);
 
32
-    }
 
33
 
 
34
     if (!screen->init (displayName))
 
35
        return false;