diff options
-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"); |