~compiz-team/compiz/0.9.9

« back to all changes in this revision

Viewing changes to plugins/grid/src/grid.h

  • Committer: Tarmac
  • Author(s): Brandon Schaefer
  • Date: 2013-01-19 00:01:39 UTC
  • mfrom: (3561.3.19 comp)
  • Revision ID: tarmac-20130119000139-188tmzj0fcz2v3qc
Adds an animation to the grid plugin. The animation takes the current window,
renders it to the growing grid box and slowly fades out into the default
orange glow box.

Also adds 2 options ccsm for the grid, one to turn this animation off, and
another to change the grid animation duration.

This also changes the default grid duration from 250 ms, to 350ms.

(LP: #689792). Fixes: https://bugs.launchpad.net/bugs/689792.

Approved by Daniel van Vugt, PS Jenkins bot, Brandon Schaefer, MC Return.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        CompRect currentRect;
100
100
        GLfloat opacity;
101
101
        GLfloat timer;
 
102
        Window window;
102
103
        int duration;
103
104
        bool complete;
104
105
        bool fadingOut;
169
170
 
170
171
class GridWindow :
171
172
    public WindowInterface,
 
173
    public GLWindowInterface,
172
174
    public PluginClassHandler <GridWindow, CompWindow>
173
175
{
174
176
    public:
176
178
        GridWindow (CompWindow *);
177
179
        ~GridWindow ();
178
180
        CompWindow *window;
 
181
        GLWindow *gWindow;
179
182
        GridScreen *gScreen;
180
183
 
181
184
        bool isGridResized;
189
192
        GridType lastTarget;
190
193
        unsigned int sizeHintsFlags;
191
194
 
 
195
        bool glPaint (const GLWindowPaintAttrib&, const GLMatrix&,
 
196
                      const CompRegion&, unsigned int);
 
197
 
192
198
        void grabNotify (int, int, unsigned int, unsigned int);
193
199
 
194
200
        void ungrabNotify ();