summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-03-15 00:03:00 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-03-15 00:03:00 +0800
commit73dad0491fb49b9053a573e5ef9eb12a2c19b193 (patch)
treec586690e5748795fb5dcbef85a7bcdac03190e40
parent3406d0071dd506f8d0f8e508ed841ca9374aa320 (diff)
downloadlazypointer-73dad0491fb49b9053a573e5ef9eb12a2c19b193.tar.gz
lazypointer-73dad0491fb49b9053a573e5ef9eb12a2c19b193.tar.bz2
Update for new core API
-rw-r--r--src/lazypointer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lazypointer.cpp b/src/lazypointer.cpp
index 0522695..d57abed 100644
--- a/src/lazypointer.cpp
+++ b/src/lazypointer.cpp
@@ -91,8 +91,8 @@ LPWindow::place (CompPoint &pos)
{
LP_SCREEN (screen);
- int cX = (pos.x () - window->input ().left) + ((window->width () + window->input ().right + window->input ().left) / 2);
- int cY = (pos.y () - window->input ().top) + ((window->height () + window->input ().top + window->input ().bottom) / 2);
+ int cX = (pos.x () - window->border ().left) + ((window->width () + window->border ().right + window->border ().left) / 2);
+ int cY = (pos.y () - window->border ().top) + ((window->height () + window->border ().top + window->border ().bottom) / 2);
Window root, child;
int rx, ry, winx, winy;
unsigned int mask;
@@ -124,8 +124,8 @@ LPWindow::activate ()
{
LP_SCREEN (screen);
- int cX = (window->x () - window->input ().left) + ((window->width () + window->input ().right + window->input ().left) / 2);
- int cY = (window->y () - window->input ().top) + ((window->height () + window->input ().top + window->input ().bottom) / 2);
+ int cX = (window->x () - window->border ().left) + ((window->width () + window->border ().right + window->border ().left) / 2);
+ int cY = (window->y () - window->border ().top) + ((window->height () + window->border ().top + window->border ().bottom) / 2);
Window root, child;
int rx, ry, winx, winy;
unsigned int mask;
@@ -154,8 +154,8 @@ LPWindow::focus ()
{
LP_SCREEN (screen);
- int cX = (window->x () - window->input ().left) + ((window->width () + window->input ().right + window->input ().left) / 2);
- int cY = (window->y () - window->input ().top) + ((window->height () + window->input ().top + window->input ().bottom) / 2);
+ int cX = (window->x () - window->border ().left) + ((window->width () + window->border ().right + window->border ().left) / 2);
+ int cY = (window->y () - window->border ().top) + ((window->height () + window->border ().top + window->border ().bottom) / 2);
Window root, child;
int rx, ry, winx, winy;
unsigned int mask;
@@ -194,8 +194,8 @@ LPScreen::winInitiate (CompAction *action,
LP_SCREEN (screen);
- int cX = (window->x () - window->input ().left) + ((window->width () + window->input ().right + window->input ().left) / 2);
- int cY = (window->y () - window->input ().top) + ((window->height () + window->input ().top + window->input ().bottom) / 2);
+ int cX = (window->x () - window->border ().left) + ((window->width () + window->border ().right + window->border ().left) / 2);
+ int cY = (window->y () - window->border ().top) + ((window->height () + window->border ().top + window->border ().bottom) / 2);
Window root, child;
int rx, ry, winx, winy;
unsigned int mask;