Merge lp://qastaging/~vanvugt/compiz-core/fix-925979 into lp://qastaging/compiz-core/0.9.5

Proposed by Daniel van Vugt
Status: Superseded
Proposed branch: lp://qastaging/~vanvugt/compiz-core/fix-925979
Merge into: lp://qastaging/compiz-core/0.9.5
Diff against target: 14 lines (+1/-2)
1 file modified
src/event.cpp (+1/-2)
To merge this branch: bzr merge lp://qastaging/~vanvugt/compiz-core/fix-925979
Reviewer Review Type Date Requested Status
Daniel van Vugt Needs Resubmitting
Alan Griffiths Approve
Robert Carr Pending
Review via email: mp+91412@code.qastaging.launchpad.net

This proposal has been superseded by a proposal from 2012-02-06.

Commit message

Fix regression: Compiz failed to pass key events through to other apps/windows
in some cases (LP: #925979)

Revert back to how the code looked in the previous release (and oneiric).

Description of the change

Fortunately, this bug has not made it into any Compiz or Ubuntu release yet.

To post a comment you must log in.
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

OK

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

I'm pretty sure this was added for a good reason, let me check with racarr on that one.

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

------------------------------------------------------------
revno: 2814.1.1
git commit: 6b8ecb998ce409462cfd72343696f4925aa33fdb
committer: Robert Carr <email address hidden>
timestamp: Thu 2011-09-15 11:28:55 -0400
message:
  event.cpp: Only ungrab the keyboard if the keystate is non zero.

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

Well it caused a regression. So whatever it was an attempt to fix should and probably can be fixed differently. In fact, I would be surprised if there wasn't a solution where we could remove XUngrabKeyboard and replace it with something else. But I don't know what else will work.

Whatever the alternative is, we should at least use the test case described in bug 925979.

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

Robert, could you please explain what you were fixing with this commit:
http://git.compiz.org/compiz/core/commit/?id=6b8ecb998ce409462cfd72343696f4925aa33fdb

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

On Sat, 4 Feb 2012, Daniel van Vugt wrote:

> Well it caused a regression. So whatever it was an attempt to fix should and probably can be fixed differently. In fact, I would be surprised if there wasn't a solution where we could remove XUngrabKeyboard and replace it with something else. But I don't know what else will work.
>
> Whatever the alternative is, we should at least use the test case described in bug 925979.

To be honest, I think this is the right approach, although I remember
racarr told me there was a good reason to only allow this on keys that
have a modifier (eg, not single keys). Perhaps that reason isn't relevant
anymore, I'll need to check.

I'll ask him when he gets in next week.

> --
> https://code.launchpad.net/~vanvugt/compiz-core/fix-925979/+merge/91412
> Your team Compiz Maintainers is subscribed to branch lp:compiz-core.
>

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

We could accommodate both. The issue with tapping a modifier is that it creates regular key events without any modifier state set. So maybe it needs:

 if (event->xkey.state || (keycode is a modifier))

But I'm reluctant to keep any "if" statement if Robert can't remember the justification for introducing it.

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

Needs resubmit for target branch lp:compiz-core (0.9.7)

review: Needs Resubmitting

Unmerged revisions

2980. By Daniel van Vugt

Fix regression: Compiz failed to pass key events through to other apps/windows
in some cases (LP: #925979)

Revert back to how the code looked in the previous release (and oneiric).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches