summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-12-23 11:59:43 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-12-23 11:59:43 +0800
commitcb30be3b3ebd5dece4230311c231e58857bf99c3 (patch)
tree56bf01a0d9787b17c841f77308c7aab56cc3443d
parent824f11e91c755402b915a8f6fd68afd29ebf07a3 (diff)
downloadwall-cb30be3b3ebd5dece4230311c231e58857bf99c3.tar.gz
wall-cb30be3b3ebd5dece4230311c231e58857bf99c3.tar.bz2
Add signals on viewport change begin / end
-rw-r--r--src/wall.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wall.cpp b/src/wall.cpp
index fb2f66c..4c14821 100644
--- a/src/wall.cpp
+++ b/src/wall.cpp
@@ -417,6 +417,8 @@ WallScreen::moveViewport (int x,
int y,
Window moveWin)
{
+ CompOption::Vector o(0);
+
if (!x && !y)
return false;
@@ -458,6 +460,8 @@ WallScreen::moveViewport (int x,
determineMovementAngle ();
+ screen->handleCompizEvent ("wall", "start_viewport_switch", o);
+
if (!grabIndex)
grabIndex = screen->pushGrab (screen->invisibleCursor (), "wall");
@@ -1249,6 +1253,7 @@ WallScreen::preparePaint (int msSinceLastPaint)
if (moving && curPosX == gotoX && curPosY == gotoY)
{
+ CompOption::Vector o (0);
moving = false;
timer = 0;
@@ -1260,6 +1265,8 @@ WallScreen::preparePaint (int msSinceLastPaint)
if (!screen->grabExist ("switcher"))
screen->focusDefaultWindow ();
}
+
+ screen->handleCompizEvent ("wall", "end_viewport_switch", o);
}
cScreen->preparePaint (msSinceLastPaint);