Merge lp:~njpatel/nux/input-area-ungrab-on-destroy-3.0 into lp:nux/3.0
Proposed by
Neil J. Patel
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | 654 |
Merged at revision: | 655 |
Proposed branch: | lp:~njpatel/nux/input-area-ungrab-on-destroy-3.0 |
Merge into: | lp:nux/3.0 |
Diff against target: |
114 lines (+85/-1) 3 files modified
Nux/InputArea.cpp (+2/-1) tests/Makefile.am (+1/-0) tests/gtest-nux-input-area.cpp (+82/-0) |
To merge this branch: | bzr merge lp:~njpatel/nux/input-area-ungrab-on-destroy-3.0 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Trevisan (Treviño) | Approve | ||
Review via email: mp+125005@code.launchpad.net |
Commit message
InputArea: remove the pending grabs on destroy (it could cause crash otherwise)
Description of the change
THIS IS A CROSS MERGE FROM LP:NUX TO HAVE THIS FIX IN QUANTAL
When an InputArea grabs the keyboard or the pointer and then it gets destroyed, it is not removed from the window compositor list of the grabbed areas; this could cause a crash (mostly when doing current_
I think it's safer to remove all the references of the current area from the compositor on destroy.
Gtests included.
To post a comment you must log in.
Correctly backported! ;)