~smspillaz/compiz-grid-plugin/oneiric.maybe_fix_corruption_placement

« back to all changes in this revision

Viewing changes to src/grid.h

  • Committer: Sam Spilsbury
  • Date: 2011-09-27 15:59:09 UTC
  • mfrom: (84.5.14 compiz-grid-plugin)
  • Revision ID: sam.spilsbury@canonical.com-20110927155909-9amod8kcevzt3g1b
MergeĀ upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        CompRect workarea, currentRect, desiredSlot, lastSlot,
102
102
                 desiredRect, lastWorkarea, currentWorkarea;
103
103
        GridProps props;
104
 
        Edges edge, lastEdge;
 
104
        Edges edge, lastEdge, lastResizeEdge;
105
105
        CompOption::Vector o;
106
106
        bool centerCheck;
107
107
        CompWindow *mGrabWindow;
108
108
        bool animating;
 
109
        bool mSwitchingVp;
109
110
 
110
111
        void getPaintRectangle (CompRect&);
111
112
        void setCurrentRect (Animation&);
112
113
 
113
114
        bool initiateCommon (CompAction*, CompAction::State,
114
 
                             CompOption::Vector&, GridType, bool);
 
115
                             CompOption::Vector&, GridType, bool, bool);
115
116
 
116
117
        void glPaintRectangle (const GLScreenPaintAttrib&,
117
118
                               const GLMatrix&, CompOutput *);
128
129
        GridType edgeToGridType ();
129
130
 
130
131
        void handleEvent (XEvent *event);
 
132
        void handleCompizEvent (const char *plugin, const char *event, CompOption::Vector &options);
131
133
 
132
134
        bool restoreWindow (CompAction*,
133
135
                            CompAction::State,
152
154
    public:
153
155
 
154
156
        GridWindow (CompWindow *);
 
157
        ~GridWindow ();
155
158
        CompWindow *window;
156
159
        GridScreen *gScreen;
157
160
 
160
163
        int pointerBufDx;
161
164
        int pointerBufDy;
162
165
        int resizeCount;
 
166
        CompRect currentSize;
163
167
        CompRect originalSize;
164
168
        GridType lastTarget;
165
169
 
168
172
        void ungrabNotify ();
169
173
 
170
174
        void moveNotify (int, int, bool);
 
175
 
 
176
        void stateChangeNotify (unsigned int);
171
177
};
172
178
 
173
179
#define GRID_WINDOW(w) \