summaryrefslogtreecommitdiff
path: root/src/privatescreen.h
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2008-08-06 20:46:09 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2008-08-06 20:46:09 +0200
commitafca86acd5d13930330dfca15a3c5b0d592128b0 (patch)
treed8e97405958aeefd58e0ecb153c4f2fd32d4b58e /src/privatescreen.h
parent8b1b0d2dcc7f6984869bc11124c328357f5b838f (diff)
downloadunity-window-decorator-afca86acd5d13930330dfca15a3c5b0d592128b0.tar.gz
unity-window-decorator-afca86acd5d13930330dfca15a3c5b0d592128b0.tar.bz2
Use CompPoint/CompSize in CompScreen.
Diffstat (limited to 'src/privatescreen.h')
-rw-r--r--src/privatescreen.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/privatescreen.h b/src/privatescreen.h
index 847b33e..66f9914 100644
--- a/src/privatescreen.h
+++ b/src/privatescreen.h
@@ -3,6 +3,8 @@
#include <compiz-core.h>
#include <compscreen.h>
+#include <compsize.h>
+#include <comppoint.h>
class PrivateScreen {
@@ -113,12 +115,10 @@ class PrivateScreen {
Colormap colormap;
int screenNum;
- int width;
- int height;
- int x;
- int y;
- int hsize; /* Number of horizontal viewports */
- int vsize; /* Number of vertical viewports */
+
+ CompSize size;
+ CompPoint vp;
+ CompSize vpSize;
unsigned int nDesktop;
unsigned int currentDesktop;
REGION region;
@@ -156,8 +156,8 @@ class PrivateScreen {
CompOutput fullscreenOutput;
bool hasOverlappingOutputs;
- int windowOffsetX;
- int windowOffsetY;
+
+ CompPoint windowPaintOffset;
XRectangle lastViewport;
@@ -200,8 +200,7 @@ class PrivateScreen {
int grabSize;
int maxGrab;
- int rasterX;
- int rasterY;
+ CompPoint rasterPos;
struct timeval lastRedraw;
int nextRedraw;
int redrawTime;