Merge lp:~sjakthol/compiz/fix-1063871 into lp:compiz/0.9.9
Status: | Merged |
---|---|
Approved by: | Daniel van Vugt |
Approved revision: | 3437 |
Merged at revision: | 3437 |
Proposed branch: | lp:~sjakthol/compiz/fix-1063871 |
Merge into: | lp:compiz/0.9.9 |
Diff against target: |
14 lines (+3/-1) 1 file modified
plugins/grid/src/grid.cpp (+3/-1) |
To merge this branch: | bzr merge lp:~sjakthol/compiz/fix-1063871 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel van Vugt | Approve | ||
MC Return | Approve | ||
PS Jenkins bot | continuous-integration | Pending | |
Review via email: mp+130321@code.launchpad.net |
Commit message
Grid: Reset the currently handled window in the GridWindow destructor
only if the destroyed window was the handled one.
Currently completely unrelated GridWindow destruction will erase the
saved ID of the window Grid should be handling. This will break
the functionality if a GridWindow is destroyed while another window
is being dragged.
Description of the change
Test case:
1. Open Gedit
2. Drag window to the right edge of your screen
3. Drop the window
Current behavior: Grid fails to function.
Behavior with this fix:
At (2) the orange overlay appears and at (3) window snaps to the right half of the screen.
This issue happens with Gedit because when a Gedit window is grabbed, few destruction events of GridWindows are triggered. Other applications might be affected too.
Great 8) - Have not tested it yet, but the .diff and your description look sane to me.
Keep them fixes comin' ;)