diff options
author | Sam Spilsbury <smspillaz@gmail.com> | 2010-12-23 11:57:46 +0800 |
---|---|---|
committer | Sam Spilsbury <smspillaz@gmail.com> | 2010-12-23 11:57:46 +0800 |
commit | 07f258e4a9df005681158a006e9ea062e5bbab95 (patch) | |
tree | d03f04cdd39b153f298cd2cf19f60a533bc20f75 | |
parent | 2f4b3fae6c3c54b3a83f759f46aa3257a5577110 (diff) | |
download | compiz-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.cpp | 6 |
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"); |