Merge lp:~compiz-team/compiz/compiz.expo.fix_1037142 into lp:compiz/0.9.9

Proposed by Sam Spilsbury
Status: Merged
Approved by: Sam Spilsbury
Approved revision: 3387
Merged at revision: 3424
Proposed branch: lp:~compiz-team/compiz/compiz.expo.fix_1037142
Merge into: lp:compiz/0.9.9
Prerequisite: lp:~compiz-team/compiz/compiz.fix_1053280
Diff against target: 78 lines (+0/-26)
1 file modified
plugins/expo/src/expo.cpp (+0/-26)
To merge this branch: bzr merge lp:~compiz-team/compiz/compiz.expo.fix_1037142
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
jenkins (community) continuous-integration Needs Fixing
Daniel van Vugt Approve
Sam Spilsbury Pending
Review via email: mp+129140@code.launchpad.net

This proposal supersedes a proposal from 2012-10-11.

Commit message

Remove redundant checks in Expo which could cause grid to be triggered in
expo. (LP: #1037142)

We'd be checking for a condition that could never be true, as we pass
noOptions () to expoTerm. Better just to not have that check at all, since
it's useless in a post 0.8 world.

.

Description of the change

Remove redundant checks in Expo which could cause grid to be triggered in expo. We'd be checking for a condition that could never be true, as we pass noOptions () to expoTerm. Better just to not have that check at all, since its useless in a post 0.8 world.

Tested by the branch this one depends on.

To post a comment you must log in.
Revision history for this message
jenkins (martin-mrazik+qa) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal

CI appears to be 404ing

Revision history for this message
Martin Mrazik (mrazik) wrote : Posted in a previous version of this proposal

> CI appears to be 404ing

Sorry. That is a but that needs to be workarounded every now and then. Should work now. This is the relevant error:

patching file plugins/expo/src/windows_on_viewport/src/windows-on-viewport.cpp
patching file plugins/expo/src/windows_on_viewport/tests/CMakeLists.txt
patching file plugins/expo/src/windows_on_viewport/tests/test-windows-on-viewport.cpp
patching file plugins/expo/src/client-list-generator.h
patching file plugins/expo/src/viewport-member-window.h
Patch 100_expo_layout.patch does not apply (enforce with -f)
dh_quilt_patch: quilt --quiltrc /dev/null push -a || test $? = 2 returned exit code 1
make[1]: *** [override_dh_quilt_patch] Error 1
make[1]: Leaving directory `/tmp/buildd/compiz-0.9.8.2+bzr3377'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal

Resubmit per the prereq branch.

review: Needs Resubmitting
Revision history for this message
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal

Actually, it should just be possible to have the fix inside the grid plugin in Q for now and leave the rest for later (which "properly" fixes it). I've split up the branches in this case, and this one is marked resubmit because it depends on the tests.

review: Needs Resubmitting
Revision history for this message
Sam Spilsbury (smspillaz) : Posted in a previous version of this proposal
review: Needs Resubmitting
Revision history for this message
jenkins (martin-mrazik+qa) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
jenkins (martin-mrazik+qa) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal

The prerequisite link points to a superseded branch, which is sure to cause Tarmac/Jenkins confusion.

review: Needs Resubmitting
Revision history for this message
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal

It doesn't matter anyways, we're not having this in the next 3 hours ....

Revision history for this message
jenkins (martin-mrazik+qa) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal

Superficial assessment:

Bug 1037142 is already fix released, so this branch should not be named *fix_1037142
The prerequisite branch is superseded, which the auto merger does not like.

review: Needs Resubmitting
Revision history for this message
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal

> Superficial assessment:
>
> Bug 1037142 is already fix released, so this branch should not be named
> *fix_1037142

It fixes the bug properly. The last thing that went in which "fixed" the bug just avoided causing it by detecting the expo plugin was active and not allowing grid to fire. This fixes the real issue that was causing the problem.

I can split the bugs if you want, but they will be split on a functional analysis of the issues and not really a user analysis.

> The prerequisite branch is superseded, which the auto merger does not like.

This is not really a problem as we have to resubmit without the prereq before approving anyways.

Revision history for this message
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal

Resubmitted as above, note that this will fail jenkins due to a distro patch on the expo plugin, so that distro patch should first be refreshed before looking at this.

Revision history for this message
jenkins (martin-mrazik+qa) wrote : Posted in a previous version of this proposal
review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal

Please resubmit with the correct prerequisite branch name (lp:~compiz-team/compiz/compiz.fix_1053280)

So many "superseded" links to follow...

review: Needs Resubmitting
Revision history for this message
Sam Spilsbury (smspillaz) wrote :

Ah sorry about that. That typo was hard to spot, I thought the prereq was already correct.

Revision history for this message
jenkins (martin-mrazik+qa) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Works for me.

review: Approve
Revision history for this message
jenkins (martin-mrazik+qa) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/expo/src/expo.cpp'
2--- plugins/expo/src/expo.cpp 2012-09-05 17:15:39 +0000
3+++ plugins/expo/src/expo.cpp 2012-10-11 10:12:24 +0000
4@@ -46,10 +46,6 @@
5 CompAction::State state,
6 CompOption::Vector& options)
7 {
8- Window xid = CompOption::getIntOptionNamed (options, "root", 0);
9- if (xid != screen->root ())
10- return false;
11-
12 if (expoMode)
13 {
14 dndState = DnDStart;
15@@ -67,10 +63,6 @@
16 CompAction::State state,
17 CompOption::Vector& options)
18 {
19- Window xid = CompOption::getIntOptionNamed (options, "root", 0);
20- if (xid != screen->root ())
21- return false;
22-
23 if (dndState == DnDDuring || dndState == DnDStart)
24 {
25 if (dndWindow)
26@@ -93,10 +85,6 @@
27 CompAction::State state,
28 CompOption::Vector& options)
29 {
30- Window xid = CompOption::getIntOptionNamed (options, "root", 0);
31- if (xid != screen->root ())
32- return false;
33-
34 if (screen->otherGrabExist ("expo", NULL))
35 return false;
36
37@@ -139,10 +127,6 @@
38 CompAction::State state,
39 CompOption::Vector& options)
40 {
41- Window xid = CompOption::getIntOptionNamed (options, "root", 0);
42- if (xid && xid != screen->root ())
43- return false;
44-
45 if (!expoMode)
46 return true;
47
48@@ -175,10 +159,6 @@
49 CompAction::State state,
50 CompOption::Vector& options)
51 {
52- Window xid = CompOption::getIntOptionNamed (options, "root", 0);
53- if (xid != screen->root ())
54- return false;
55-
56 if (!expoMode)
57 return false;
58
59@@ -195,9 +175,6 @@
60 CompOption::Vector& options)
61 {
62 unsigned int newX, newY;
63- Window xid = CompOption::getIntOptionNamed (options, "root", 0);
64- if (xid != screen->root ())
65- return false;
66
67 if (!expoMode)
68 return false;
69@@ -226,9 +203,6 @@
70 CompOption::Vector& options)
71 {
72 int newX, newY;
73- Window xid = CompOption::getIntOptionNamed (options, "root", 0);
74- if (xid != screen->root ())
75- return false;
76
77 if (!expoMode)
78 return false;

Subscribers

People subscribed via source and target branches