Merge lp:~muktupavels/compiz/auto-add-ccp into lp:compiz/0.9.12

Proposed by Alberts Muktupāvels
Status: Merged
Approved by: MC Return
Approved revision: 3948
Merged at revision: 3951
Proposed branch: lp:~muktupavels/compiz/auto-add-ccp
Merge into: lp:compiz/0.9.12
Diff against target: 131 lines (+15/-59)
4 files modified
debian/patches/ccp_plugin.patch (+0/-58)
debian/patches/series (+0/-1)
src/main.cpp (+14/-0)
tests/xorg-gtest/src/compiz-xorg-gtest.cpp (+1/-0)
To merge this branch: bzr merge lp:~muktupavels/compiz/auto-add-ccp
Reviewer Review Type Date Requested Status
Dmitry Shachnev Approve
MC Return Approve
Review via email: mp+257298@code.launchpad.net

Commit message

Stop using ccp_plugin.patch only in ubuntu, apply it to source and remove it from debian/patches.

Description of the change

Stop using ccp_plugin.patch only in ubuntu, apply it to source and remove it from debian/patches.

GNOME Flashback has compiz session. Recently I added compiz as jhbuild module to make it possible to build GNOME Flashback (Compiz) session.

Compiz will start without loading ccp plugin and that is probably almost always something that user does not want.

To post a comment you must log in.
Revision history for this message
MC Return (mc-return) wrote :

LGTM, +1.
As this deals with a Ubuntu distro patch, I will not approve this globally, but I agree 100%.

review: Approve
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

This is a no-op for Ubuntu, so +1 from us. Can you top-approve this now?

review: Approve
Revision history for this message
MC Return (mc-return) wrote :

> This is a no-op for Ubuntu, so +1 from us. Can you top-approve this now?

+1

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'debian/patches/ccp_plugin.patch'
2--- debian/patches/ccp_plugin.patch 2013-02-21 17:07:14 +0000
3+++ debian/patches/ccp_plugin.patch 1970-01-01 00:00:00 +0000
4@@ -1,58 +0,0 @@
5-Index: compiz.fix_dist_upgrade/src/main.cpp
6-===================================================================
7---- compiz.fix_dist_upgrade.orig/src/main.cpp 2013-02-22 01:06:33.342881314 +0800
8-+++ compiz.fix_dist_upgrade/src/main.cpp 2013-02-22 01:07:03.283029785 +0800
9-@@ -38,6 +38,11 @@
10- #include "privatescreen.h"
11- #include "privatestackdebugger.h"
12-
13-+namespace
14-+{
15-+bool autoAddCCP = true;
16-+}
17-+
18- void
19- CompManager::usage ()
20- {
21-@@ -52,6 +57,7 @@
22- " --debug Enable debug mode\n"
23- " --version Show the program version\n"
24- " --help Show this summary\n"
25-+ " --no-auto-add-ccp Do not automatically load the ccp plugin\n"
26- , programName);
27- }
28-
29-@@ -116,6 +122,11 @@
30- if (i + 1 < argc)
31- clientId = argv[++i];
32- }
33-+ else if (!strcmp (argv[i], "--no-auto-add-ccp"))
34-+ {
35-+ compLogMessage ("core", CompLogLevelInfo, "running without the ccp plugin, no settings will be loaded");
36-+ autoAddCCP = false;
37-+ }
38- else if (*argv[i] == '-')
39- {
40- compLogMessage ("core", CompLogLevelWarn,
41-@@ -151,6 +162,9 @@
42-
43- modHandler = new ModifierHandler ();
44-
45-+ if (initialPlugins.empty () && autoAddCCP)
46-+ initialPlugins.push_back ("ccp");
47-+
48- if (!screen->init (displayName))
49- return false;
50-
51-Index: compiz.fix_dist_upgrade/tests/xorg-gtest/src/compiz-xorg-gtest.cpp
52-===================================================================
53---- compiz.fix_dist_upgrade.orig/tests/xorg-gtest/src/compiz-xorg-gtest.cpp 2013-02-22 01:06:33.342881314 +0800
54-+++ compiz.fix_dist_upgrade/tests/xorg-gtest/src/compiz-xorg-gtest.cpp 2013-02-22 01:06:33.342881314 +0800
55-@@ -462,6 +462,7 @@
56- if (flags & ct::CompizProcess::ReplaceCurrentWM)
57- args.push_back ("--replace");
58-
59-+ args.push_back ("--no-auto-add-ccp");
60- args.push_back ("--send-startup-message");
61-
62- priv->mProcess.Start (compizBinaryPath, args);
63
64=== modified file 'debian/patches/series'
65--- debian/patches/series 2014-11-03 22:47:47 +0000
66+++ debian/patches/series 2015-04-23 20:18:28 +0000
67@@ -1,6 +1,5 @@
68 ubuntu_super_p.patch
69 ubuntu-config.patch
70-ccp_plugin.patch
71 ccsm_remove_redundant_sliders.patch
72 ccsm_add_first_run_warning.patch
73 ccsm_disable_unity_checkbox.patch
74
75=== modified file 'src/main.cpp'
76--- src/main.cpp 2013-02-21 17:05:46 +0000
77+++ src/main.cpp 2015-04-23 20:18:28 +0000
78@@ -38,6 +38,11 @@
79 #include "privatescreen.h"
80 #include "privatestackdebugger.h"
81
82+namespace
83+{
84+ bool autoAddCCP = true;
85+}
86+
87 void
88 CompManager::usage ()
89 {
90@@ -48,6 +53,7 @@
91 " --sm-disable Disable session management\n"
92 " --sm-client-id ID Session management client ID\n"
93 " --keep-desktop-hints Retain existing desktop hints\n"
94+ " --no-auto-add-ccp Do not automatically load the ccp plugin\n"
95 " --sync Make all X calls synchronous\n"
96 " --debug Enable debug mode\n"
97 " --version Show the program version\n"
98@@ -99,6 +105,11 @@
99 {
100 useDesktopHints = true;
101 }
102+ else if (!strcmp (argv[i], "--no-auto-add-ccp"))
103+ {
104+ compLogMessage ("core", CompLogLevelInfo, "running without the ccp plugin, no settings will be loaded");
105+ autoAddCCP = false;
106+ }
107 else if (!strcmp (argv[i], "--replace"))
108 {
109 replaceCurrentWm = true;
110@@ -151,6 +162,9 @@
111
112 modHandler = new ModifierHandler ();
113
114+ if (initialPlugins.empty () && autoAddCCP)
115+ initialPlugins.push_back ("ccp");
116+
117 if (!screen->init (displayName))
118 return false;
119
120
121=== modified file 'tests/xorg-gtest/src/compiz-xorg-gtest.cpp'
122--- tests/xorg-gtest/src/compiz-xorg-gtest.cpp 2013-07-18 13:06:24 +0000
123+++ tests/xorg-gtest/src/compiz-xorg-gtest.cpp 2015-04-23 20:18:28 +0000
124@@ -778,6 +778,7 @@
125 if (flags & ct::CompizProcess::ReplaceCurrentWM)
126 args.push_back ("--replace");
127
128+ args.push_back ("--no-auto-add-ccp");
129 args.push_back ("--send-startup-message");
130
131 /* Copy in plugin list and set environment variables */

Subscribers

People subscribed via source and target branches