summaryrefslogtreecommitdiff
path: root/src/tiles.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tiles.h')
-rw-r--r--src/tiles.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/tiles.h b/src/tiles.h
index 2f0028c..0d30bb6 100644
--- a/src/tiles.h
+++ b/src/tiles.h
@@ -58,6 +58,7 @@ class PrivateTile
TileLayerPtr mParent;
CompRect mRect;
+ CompRect mTarget;
CompWindow *mWindow;
CompWindow::Geometry mSaveGeometry;
unsigned int mSaveMask;
@@ -128,7 +129,7 @@ class TileLayer :
const std::vector<Tile::Ptr> & tiles ();
- void handleWindowResize (CompWindow *);
+ void handleWindowResize (CompWindow *, int x, int y, int width, int height);
void handleWindowGrabbed (CompWindow *w);
void handleWindowGrabMovement (CompWindow *w, CompPoint &p);
void handleWindowUngrabbed (CompWindow *w);
@@ -181,7 +182,7 @@ class TilesWindow :
void validateResizeRequest (unsigned int &mask,
XWindowChanges *xwc,
unsigned int source);
- void resizeNotify (int dx, int dy, int dwidth, int dheight);
+ void onResizeNotification (int x, int y, int width, int height);
bool glPaint (const GLWindowPaintAttrib &attrib, const GLMatrix &matrix,
const CompRegion &region, unsigned int mask);
@@ -206,6 +207,7 @@ class PrivateTilesScreen
GLScreen *gScreen;
std::vector <TilesWindow *> mDraggedWindows;
+ std::vector <TilesWindow *> mResizedWindows;
std::vector <TileLayer::Ptr> mTileLayers;
};
@@ -228,8 +230,12 @@ class TilesScreen :
void addGrabbedWindow (TilesWindow *tw);
void removeGrabbedWindow (TilesWindow *tw);
+ void addResizingWindow (TilesWindow *tw);
void dragGrabbedWindow (TilesWindow *tw, CompPoint pointer);
- bool grabbedWindows ();
+ void handleWindowResized (TilesWindow *tw, int x, int y, int width, int height);
+ bool grabbedWindows (unsigned int);
+
+ void handleEvent (XEvent *event);
private: