summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/miniview.c
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-03 00:56:38 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-03 00:56:38 +0000
commit4b731dbb235d5bf22d4df015bafaa51729f0cf9d (patch)
treeb15b27d6ad8cbb4ca9362a13774479254ee01ca6 /beryl-plugins/src/miniview.c
parentbbfa0da4f892aaa6f90b8a573cdb93792110dcc3 (diff)
downloadmarex-dev-4b731dbb235d5bf22d4df015bafaa51729f0cf9d.tar.gz
marex-dev-4b731dbb235d5bf22d4df015bafaa51729f0cf9d.tar.bz2
Grab the screen in expo mode
git-svn-id: file:///beryl/trunk@3598 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/miniview.c')
-rw-r--r--beryl-plugins/src/miniview.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/beryl-plugins/src/miniview.c b/beryl-plugins/src/miniview.c
index ecc1d78..f824d32 100644
--- a/beryl-plugins/src/miniview.c
+++ b/beryl-plugins/src/miniview.c
@@ -83,6 +83,8 @@ typedef struct _MiniviewScreen
int pointerX;
int pointerY;
+ int grabIndex;
+
} MiniviewScreen;
#define GET_MINIVIEW_DISPLAY(d) \
@@ -177,6 +179,10 @@ static Bool miniviewExpo(CompDisplay *d, CompAction * action, CompActionState st
MINIVIEW_SCREEN(s);
ms->expoMode = !ms->expoMode;
ms->expoCam = 0;
+ if (ms->expoMode)
+ ms->grabIndex = pushScreenGrab(s, None, "expo");
+ else if (ms->grabIndex)
+ removeScreenGrab(s,ms->grabIndex,NULL);
damageScreen(s);
@@ -501,7 +507,7 @@ static Bool miniviewInitScreen(CompPlugin * p, CompScreen * s)
if (!ms)
return FALSE;
- ms->pointerX = ms->pointerY = ms->expoCam = ms->expoMode = ms->moving = ms->miniX = ms->miniY = ms->miniViewport = ms->showing = ms->zCam =
+ ms->grabIndex = ms->pointerX = ms->pointerY = ms->expoCam = ms->expoMode = ms->moving = ms->miniX = ms->miniY = ms->miniViewport = ms->showing = ms->zCam =
ms->moveStep = 0;
ms->size = 3.0;
addScreenAction(s, &md->opt[MINIVIEW_DISPLAY_OPTION_CREATE].value.action);