summaryrefslogtreecommitdiff
path: root/src/windowgeometry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/windowgeometry.cpp')
-rw-r--r--src/windowgeometry.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/windowgeometry.cpp b/src/windowgeometry.cpp
index aa94487..257a954 100644
--- a/src/windowgeometry.cpp
+++ b/src/windowgeometry.cpp
@@ -1,4 +1,6 @@
+#include <compiz-core.h>
#include <compwindow.h>
+#include <privatewindow.h>
CompWindow::Geometry::Geometry () :
@@ -27,3 +29,22 @@ CompWindow::Geometry::setBorder (unsigned int border)
{
mBorder = border;
}
+
+void
+CompWindow::Geometry::set (int x, int y,
+ unsigned int width,
+ unsigned int height,
+ unsigned int border)
+{
+ setX (x);
+ setY (y);
+ setWidth (width);
+ setHeight (height);
+ mBorder = border;
+}
+
+CompWindow::Geometry &
+CompWindow::serverGeometry ()
+{
+ return priv->serverGeometry;
+}