diff options
Diffstat (limited to 'beryl-plugins/src/wall.c')
-rw-r--r-- | beryl-plugins/src/wall.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/beryl-plugins/src/wall.c b/beryl-plugins/src/wall.c index 0a7b6d9..535eb37 100644 --- a/beryl-plugins/src/wall.c +++ b/beryl-plugins/src/wall.c @@ -143,6 +143,7 @@ typedef enum { ExpoAnimationZoom = 0, ExpoAnimationFadeZoom, + ExpoAnimationVortex, ExpoAnimationNum } ExpoAnimation; @@ -151,6 +152,7 @@ typedef enum static char *expoAnimationName[] = { N_("Zoom"), N_("Fade + Zoom"), + N_("Vortex") }; typedef struct _WallDisplay @@ -1503,6 +1505,9 @@ static void wallPaintTransformedScreen(CompScreen * s, CompTransform sTransform2 = sTransform; for (i = 0; i < s->hsize; i++) { + if (wd->expoAnimationType == ExpoAnimationVortex) + matrixRotate(&sTransform2, 360 * ws->expoCam, 0.0f, 1.0f, + 2.0f * ws->expoCam); (*s->paintTransformedScreen) (s, sAttrib, &sTransform2, &s->region, output, mask); |