summaryrefslogtreecommitdiff
path: root/src/output.cpp
diff options
context:
space:
mode:
authorEduardo Gurgel Pinho <eduardo@mad4.Chagas>2009-03-06 23:02:39 -0300
committerDennis Kasprzyk <onestone@compiz-fusion.org>2009-03-10 00:34:19 +0100
commit39c08a74883bcb639cab9c86ae2ba0c63433c036 (patch)
treec286b7acfca8750d1c31ac72f219a3443e900ddd /src/output.cpp
parent5041f18da51155345debabcbe8232591eb2220c8 (diff)
downloadunity-window-decorator-39c08a74883bcb639cab9c86ae2ba0c63433c036.tar.gz
unity-window-decorator-39c08a74883bcb639cab9c86ae2ba0c63433c036.tar.bz2
Applying CompRect changes
Diffstat (limited to 'src/output.cpp')
-rw-r--r--src/output.cpp20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/output.cpp b/src/output.cpp
index 5fda864..e9f5920 100644
--- a/src/output.cpp
+++ b/src/output.cpp
@@ -82,26 +82,14 @@ CompOutput::setWorkArea (XRectangle workarea)
}
void
-CompOutput::setGeometry (int x1, int x2, int y1, int y2)
+CompOutput::setGeometry (int x1, int y1, unsigned int width, unsigned int height)
{
- if (x1 < 0)
- x1 = 0;
-
- if (y1 < 0)
- y1 = 0;
-
- if (x2 < 0)
- x2 = 0;
-
- if (y2 < 0)
- y2 = 0;
-
- CompRect::setGeometry (x1, x2, y1, y2);
+ CompRect::setGeometry (x1, y1, width, height);
mWorkArea.x = this->x1 ();
mWorkArea.y = this->y1 ();
- mWorkArea.width = width ();
- mWorkArea.height = height ();
+ mWorkArea.width = this->width ();
+ mWorkArea.height = this->height ();
}
void