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
=== modified file 'src/grid.cpp'
--- src/grid.cpp 2011-10-02 13:30:13 +0000
+++ src/grid.cpp 2011-10-05 17:50:28 +0000
@@ -705,20 +705,23 @@
705 if (edge != NoEdge && check)705 if (edge != NoEdge && check)
706 {706 {
707 CompWindow *cw = screen->findWindow (screen->activeWindow ());707 CompWindow *cw = screen->findWindow (screen->activeWindow ());
708 animations.push_back (Animation ());708 if (cw)
709 int current = animations.size () - 1;
710 animations.at (current).fromRect = cw->serverBorderRect ();
711 animations.at (current).currentRect = cw->serverBorderRect ();
712 animations.at (current).timer = animations.at (current).duration;
713 animations.at (current).targetRect = desiredSlot;
714
715 if (lastEdge == NoEdge || !animating)
716 {709 {
710 animations.push_back (Animation ());
711 int current = animations.size () - 1;
712 animations.at (current).fromRect = cw->serverBorderRect ();
713 animations.at (current).currentRect = cw->serverBorderRect ();
714 animations.at (current).timer = animations.at (current).duration;
715 animations.at (current).targetRect = desiredSlot;
716
717 if (lastEdge == NoEdge || !animating)
718 {
717 /* Cursor has entered edge region from non-edge region */719 /* Cursor has entered edge region from non-edge region */
718 animating = true;720 animating = true;
719 glScreen->glPaintOutputSetEnabled (this, true);721 glScreen->glPaintOutputSetEnabled (this, true);
720 cScreen->preparePaintSetEnabled (this, true);722 cScreen->preparePaintSetEnabled (this, true);
721 cScreen->donePaintSetEnabled (this, true);723 cScreen->donePaintSetEnabled (this, true);
724 }
722 }725 }
723 }726 }
724 }727 }

Subscribers

People subscribed via source and target branches

to all changes: