1
=== modified file 'src/grid.cpp'
2
Index: compiz-plugins-main-0.9.6/grid/src/grid.cpp
3
===================================================================
4
--- compiz-plugins-main-0.9.6.orig/grid/src/grid.cpp 2011-10-08 00:03:01.301062568 +0800
5
+++ compiz-plugins-main-0.9.6/grid/src/grid.cpp 2011-10-08 00:03:28.497197395 +0800
7
if (edge != NoEdge && check)
9
CompWindow *cw = screen->findWindow (screen->activeWindow ());
12
- animations.push_back (Animation ());
13
- int current = animations.size () - 1;
14
- animations.at (current).fromRect = cw->serverBorderRect ();
15
- animations.at (current).currentRect = cw->serverBorderRect ();
16
- animations.at (current).timer = animations.at (current).duration;
17
- animations.at (current).targetRect = desiredSlot;
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;
25
- if (lastEdge == NoEdge || !animating)
27
+ if (lastEdge == NoEdge || !animating)
29
/* Cursor has entered edge region from non-edge region */
31
glScreen->glPaintOutputSetEnabled (this, true);
32
cScreen->preparePaintSetEnabled (this, true);
33
cScreen->donePaintSetEnabled (this, true);