summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-12-23 11:57:46 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-12-23 11:57:46 +0800
commit07f258e4a9df005681158a006e9ea062e5bbab95 (patch)
treed03f04cdd39b153f298cd2cf19f60a533bc20f75
parent2f4b3fae6c3c54b3a83f759f46aa3257a5577110 (diff)
downloadcompiz-with-glib-mainloop-07f258e4a9df005681158a006e9ea062e5bbab95.tar.gz
compiz-with-glib-mainloop-07f258e4a9df005681158a006e9ea062e5bbab95.tar.bz2
Add signals for viewport change begin/end
-rw-r--r--plugins/rotate/src/rotate.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/rotate/src/rotate.cpp b/plugins/rotate/src/rotate.cpp
index d72802c..add76d5 100644
--- a/plugins/rotate/src/rotate.cpp
+++ b/plugins/rotate/src/rotate.cpp
@@ -196,6 +196,7 @@ RotateScreen::preparePaint (int msSinceLastPaint)
if (fabs (mYrot) < 0.1f)
{
+ CompOption::Vector o (0);
float xrot;
int tx;
@@ -237,6 +238,8 @@ RotateScreen::preparePaint (int msSinceLastPaint)
screen->focusDefaultWindow ();
mMoveWindow = 0;
+
+ screen->handleCompizEvent ("rotate", "end_viewport_switch", o);
}
break;
}
@@ -386,6 +389,7 @@ RotateScreen::initiate (CompAction *action,
CompAction::State state,
CompOption::Vector &options)
{
+ CompOption::Vector o (0);
if (screen->vpSize ().width () < 2)
return false;
@@ -412,6 +416,8 @@ RotateScreen::initiate (CompAction *action,
else
cubeScreen->rotationState (CubeScreen::RotationChange);
+ screen->handleCompizEvent ("rotate", "start_viewport_switch", o);
+
if (!mGrabIndex)
{
mGrabIndex = screen->pushGrab (screen->invisibleCursor (), "rotate");