Merge lp:~azzar1/compiz/revert-3513 into lp:compiz/0.9.9

Proposed by Andrea Azzarone
Status: Rejected
Rejected by: Sam Spilsbury
Proposed branch: lp:~azzar1/compiz/revert-3513
Merge into: lp:compiz/0.9.9
Diff against target: 12 lines (+1/-1)
1 file modified
src/window.cpp (+1/-1)
To merge this branch: bzr merge lp:~azzar1/compiz/revert-3513
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Daniel van Vugt Disapprove
Review via email: mp+139636@code.launchpad.net

Commit message

Revert r3513. It causes a regression with unity.
(LP: #1089811)

Description of the change

== Problem ==
[Regression] Minimizing a window creates an input-insensitive area

== Temporary fix ==
Let's revert r3513 for the moment.

To post a comment you must log in.
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Actually I just had a though...

Can we look at a proper fix for the regression? r3513 is technically correct.

I suspect a proper fix would be to modify PrivateWindow::updateRegion and add:
  if (window->minimized()) return;

That will ensure priv->inputRegion is not set if and when Unity is doing its pseudo-minimized thing.

review: Needs Information
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Note: You will need the very latest lp:unity for the proper fix to work since I only fixed UnityWindow::minimized() today.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sorry, my suggestion was over-simplified but I now have a working solution that does work without reverting r3513 (which itself is useful).

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
review: Disapprove
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Hmm, since the proper fix poses a new potential problem I will approve this despite it being logically incorrect. It's at least safer to return to the old logic we've been using for such a long time already. Even though it contains bug 1087193...

review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Argh, now my reasoning is in question. Maybe we can fix this properly. Refer back to the other proposal...

review: Disapprove
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Unmerged revisions

3529. By Andrea Azzarone

Revert r3513.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/window.cpp'
2--- src/window.cpp 2012-12-13 08:39:22 +0000
3+++ src/window.cpp 2012-12-13 09:12:22 +0000
4@@ -932,7 +932,7 @@
5 if (nInput < 1)
6 {
7 inputShapeRects = &r;
8- nInput = 1;
9+ nBounding = 1;
10 }
11
12 priv->region += rectsToRegion (nBounding, boundingShapeRects);

Subscribers

People subscribed via source and target branches