summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-03-15 00:03:27 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-03-15 00:03:27 +0800
commit40d7ef0705ddaac49ff1936ee31a868cdfccaaf3 (patch)
tree71bd17ccdc094d50c23efebe01f18c98973c74db
parent90975f06ae52d62098da46565438d71a3624d72e (diff)
downloadthrow-40d7ef0705ddaac49ff1936ee31a868cdfccaaf3.tar.gz
throw-40d7ef0705ddaac49ff1936ee31a868cdfccaaf3.tar.bz2
Update for new core API
-rw-r--r--src/throw.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/throw.h b/src/throw.h
index 34abb8c..c5237a4 100644
--- a/src/throw.h
+++ b/src/throw.h
@@ -79,11 +79,11 @@ class ThrowWindow :
#define THROW_WINDOW(w) \
ThrowWindow *tw = ThrowWindow::get (w)
-#define WIN_REAL_X(w) (w->x () - w->input ().left)
-#define WIN_REAL_Y(w) (w->y () - w->input ().top)
+#define WIN_REAL_X(w) (w->x () - w->border ().left)
+#define WIN_REAL_Y(w) (w->y () - w->border ().top)
-#define WIN_REAL_W(w) (w->width () + w->input ().left + w->input ().right)
-#define WIN_REAL_H(w) (w->height () + w->input ().top + w->input ().bottom)
+#define WIN_REAL_W(w) (w->width () + w->border ().left + w->border ().right)
+#define WIN_REAL_H(w) (w->height () + w->border ().top + w->border ().bottom)
class ThrowPluginVTable :
public CompPlugin::VTableForScreenAndWindow<ThrowScreen, ThrowWindow>