summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-03-14 23:53:05 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-03-14 23:53:05 +0800
commit457ffe915b20108168cc1c6adb506ac661427df3 (patch)
tree7bf948f4733325525509168e04abf8597235ca00
parent8e68ef64414b43dacd412243068dd8e8d851cad9 (diff)
downloadput-457ffe915b20108168cc1c6adb506ac661427df3.tar.gz
put-457ffe915b20108168cc1c6adb506ac661427df3.tar.bz2
Update for new core API
-rw-r--r--src/put.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/put.cpp b/src/put.cpp
index 8ec610d..0c3700e 100644
--- a/src/put.cpp
+++ b/src/put.cpp
@@ -26,10 +26,10 @@ COMPIZ_PLUGIN_20090315 (put, PutPluginVTable);
#define PUT_ONLY_EMPTY(type) (type >= PutEmptyBottomLeft && \
type <= PutEmptyTopRight)
-#define TOP_BORDER(w) ((w)->input ().top)
-#define LEFT_BORDER(w) ((w)->input ().left)
-#define RIGHT_BORDER(w) ((w)->input ().right + 2 * (w)->serverGeometry ().border ())
-#define BOTTOM_BORDER(w) ((w)->input ().bottom + 2 * (w)->serverGeometry ().border ())
+#define TOP_BORDER(w) ((w)->border ().top)
+#define LEFT_BORDER(w) ((w)->border ().left)
+#define RIGHT_BORDER(w) ((w)->border ().right + 2 * (w)->serverGeometry ().border ())
+#define BOTTOM_BORDER(w) ((w)->border ().bottom + 2 * (w)->serverGeometry ().border ())
#define HALF_WIDTH(w) ((w)->serverWidth () / 2 + (w)->serverGeometry ().border ())
#define HALF_HEIGHT(w) ((w)->serverHeight () / 2 + (w)->serverGeometry ().border ())
@@ -80,7 +80,7 @@ PutScreen::emptyRegion (CompWindow *window,
continue;
}
- newRegion -= w->serverInputRect ();
+ newRegion -= w->serverBorderRect ();
}
return newRegion;