Merge lp:~compiz-team/compiz-grid-plugin/oneiric.fix_834585 into lp:~compiz-team/compiz-grid-plugin/oneiric

Proposed by Sam Spilsbury
Status: Merged
Merged at revision: 92
Proposed branch: lp:~compiz-team/compiz-grid-plugin/oneiric.fix_834585
Merge into: lp:~compiz-team/compiz-grid-plugin/oneiric
Diff against target: 35 lines (+11/-8)
1 file modified
src/grid.cpp (+11/-8)
To merge this branch: bzr merge lp:~compiz-team/compiz-grid-plugin/oneiric.fix_834585
Reviewer Review Type Date Requested Status
Robert Carr (community) Approve
Review via email: mp+78295@code.launchpad.net

This proposal supersedes a proposal from 2011-10-05.

Description of the change

To post a comment you must log in.
Revision history for this message
Robert Carr (robertcarr) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/grid.cpp'
2--- src/grid.cpp 2011-10-02 13:30:13 +0000
3+++ src/grid.cpp 2011-10-05 17:50:28 +0000
4@@ -705,20 +705,23 @@
5 if (edge != NoEdge && check)
6 {
7 CompWindow *cw = screen->findWindow (screen->activeWindow ());
8- animations.push_back (Animation ());
9- int current = animations.size () - 1;
10- animations.at (current).fromRect = cw->serverBorderRect ();
11- animations.at (current).currentRect = cw->serverBorderRect ();
12- animations.at (current).timer = animations.at (current).duration;
13- animations.at (current).targetRect = desiredSlot;
14-
15- if (lastEdge == NoEdge || !animating)
16+ if (cw)
17 {
18+ animations.push_back (Animation ());
19+ int current = animations.size () - 1;
20+ animations.at (current).fromRect = cw->serverBorderRect ();
21+ animations.at (current).currentRect = cw->serverBorderRect ();
22+ animations.at (current).timer = animations.at (current).duration;
23+ animations.at (current).targetRect = desiredSlot;
24+
25+ if (lastEdge == NoEdge || !animating)
26+ {
27 /* Cursor has entered edge region from non-edge region */
28 animating = true;
29 glScreen->glPaintOutputSetEnabled (this, true);
30 cScreen->preparePaintSetEnabled (this, true);
31 cScreen->donePaintSetEnabled (this, true);
32+ }
33 }
34 }
35 }

Subscribers

People subscribed via source and target branches

to all changes: