summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/miniview.c
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-03 03:28:39 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-03 03:28:39 +0000
commitc227c7f32bc8206bbcb27c723d912b04f6c01e7d (patch)
treec0b3a4ded2e55f627444429e0efa22497d241aff /beryl-plugins/src/miniview.c
parent7be12b6fd30b4f636a9cffe0762b8289f2b2f74b (diff)
downloadmarex-dev-c227c7f32bc8206bbcb27c723d912b04f6c01e7d.tar.gz
marex-dev-c227c7f32bc8206bbcb27c723d912b04f6c01e7d.tar.bz2
Rename miniview to wall
git-svn-id: file:///beryl/trunk@3605 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/miniview.c')
-rw-r--r--beryl-plugins/src/miniview.c689
1 files changed, 0 insertions, 689 deletions
diff --git a/beryl-plugins/src/miniview.c b/beryl-plugins/src/miniview.c
deleted file mode 100644
index 3ab092c..0000000
--- a/beryl-plugins/src/miniview.c
+++ /dev/null
@@ -1,689 +0,0 @@
-/**
- *
- * Beryl miniview plugin
- *
- * miniview.c
- *
- * Copyright (c) 2006 Robert Carr <racarr@beryl-project.org>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- **/
-#include <stdio.h>
-#include <stdlib.h>
-#include <math.h>
-#include <sys/time.h>
-
-#include <beryl.h>
-
-#define MINIVIEW_CREATE_KEY_DEFAULT "Tab"
-#define MINIVIEW_CREATE_MODIFIERS_DEFAULT (ShiftMask)
-
-#define MINIVIEW_MOVE_KEY_DEFAULT Button1
-#define MINIVIEW_MOVE_MODIFIERS_DEFAULT ( ShiftMask )
-
-#define MINIVIEW_EXPO_KEY_DEFAULT "e"
-#define MINIVIEW_EXPO_MODIFIERS_DEFAULT (CompSuperMask)
-
-#define MINIVIEW_HIDE_KEY_DEFAULT "h"
-#define MINIVIEW_HIDE_MODIFIERS_DEFAULT (ShiftMask | CompSuperMask)
-
-#define MINIVIEW_LEFT_KEY_DEFAULT "Left"
-#define MINIVIEW_RIGHT_KEY_DEFAULT "Right"
-#define MINIVIEW_UP_KEY_DEFAULT "Up"
-#define MINIVIEW_DOWN_KEY_DEFAULT "Down"
-#define MINIVIEW_VIEWPORTMOVE_MODIFIERS_DEFAULT (CompAltMask | ControlMask)
-
-/* Unimplemented increase/decrease */
-
-static int displayPrivateIndex;
-
-#define MINIVIEW_DISPLAY_OPTION_CREATE 0
-#define MINIVIEW_DISPLAY_OPTION_MOVE 1
-#define MINIVIEW_DISPLAY_OPTION_EXPO 2
-#define MINIVIEW_DISPLAY_OPTION_HIDE 3
-#define MINIVIEW_DISPLAY_OPTION_DOWN 4
-#define MINIVIEW_DISPLAY_OPTION_UP 5
-#define MINIVIEW_DISPLAY_OPTION_LEFT 6
-#define MINIVIEW_DISPLAY_OPTION_RIGHT 7
-#define MINIVIEW_DISPLAY_OPTION_NUM 8
-
-typedef struct _MiniviewDisplay
-{
- int screenPrivateIndex;
- HandleEventProc handleEvent;
-
- CompOption opt[MINIVIEW_DISPLAY_OPTION_NUM];
-} MiniviewDisplay;
-
-typedef struct _MiniviewScreen
-{
- DonePaintScreenProc donePaintScreen;
- PaintScreenProc paintScreen;
- PreparePaintScreenProc preparePaintScreen;
- PaintTransformedScreenProc paintTransformedScreen;
-
- Bool showing;
- int miniX;
- int miniY;
- int miniViewport;
- int miniViewportY;
- int moveStep;
- float zCam;
- float expoCam;
-
- float size;
-
- Bool moving;
- Bool expoMode;
-
- int pointerX;
- int pointerY;
-
- int grabIndex;
-
-} MiniviewScreen;
-
-#define GET_MINIVIEW_DISPLAY(d) \
- ((MiniviewDisplay *) (d)->privates[displayPrivateIndex].ptr)
-#define MINIVIEW_DISPLAY(d) \
- MiniviewDisplay *md = GET_MINIVIEW_DISPLAY(d);
-
-#define GET_MINIVIEW_SCREEN(s,md) \
- ((MiniviewScreen *) (s)->privates[(md)->screenPrivateIndex].ptr)
-#define MINIVIEW_SCREEN(s) \
- MiniviewScreen *ms = GET_MINIVIEW_SCREEN(s, GET_MINIVIEW_DISPLAY(s->display))
-
-#define NUM_OPTIONS(d) (sizeof ((d->opt)) / sizeof (CompOption))
-
-
-static void miniviewHandleEvent(CompDisplay * d, XEvent * event)
-{
- MINIVIEW_DISPLAY(d);
-
- CompScreen *s;
- switch (event->type)
- {
- default:
- break;
- }
- UNWRAP(md,d,handleEvent);
- (*d->handleEvent)(d,event);
- WRAP(md,d,handleEvent,miniviewHandleEvent);
-}
-
-static Bool miniviewCreate(CompDisplay * d, CompAction * action,
- CompActionState state, CompOption * option,
- int nOption)
-{
- CompScreen *s;
- Window xid;
-
- xid = getIntOptionNamed(option, nOption, "root", 0);
- s = findScreenAtDisplay(d, xid);
- MINIVIEW_SCREEN(s);
- ms->showing = !ms->showing;
- ms->miniViewport = s->x;
- ms->miniViewportY = s->y;
- ms->miniX = d->pointerX;
- ms->miniY = d->pointerY;
- ms->zCam = 0;
- ms->moveStep = 1;
- damageScreen(s);
- return FALSE;
-}
-
-static Bool miniviewMove(CompDisplay * d, CompAction * action,
- CompActionState state, CompOption * option,
- int nOption)
-{
- CompScreen *s;
- Window xid;
-
- xid = getIntOptionNamed(option, nOption, "root", 0);
- s = findScreenAtDisplay(d, xid);
- MINIVIEW_SCREEN(s);
- ms->moving = !ms->moving;
- damageScreen(s);
-
-
- return FALSE;
-}
-
-static Bool miniviewHide(CompDisplay * d, CompAction * action,
- CompActionState state, CompOption * option,
- int nOption)
-{
- CompScreen *s;
- Window xid;
-
- xid = getIntOptionNamed(option, nOption, "root", 0);
- s = findScreenAtDisplay(d, xid);
- MINIVIEW_SCREEN(s);
- ms->showing = !ms->showing;
- damageScreen(s);
-
-
- return FALSE;
-}
-
-static Bool miniviewExpo(CompDisplay *d, CompAction * action, CompActionState state, CompOption * option, int nOption)
-{
- CompScreen *s;
- Window xid;
-
- xid = getIntOptionNamed(option, nOption, "root", 0);
- s = findScreenAtDisplay(d, xid);
- 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);
-
-
- return FALSE;
-}
-
-#define GET_SCREEN \
- CompScreen *s;\
- Window xid; \
- xid = getIntOptionNamed(option, nOption, "root", 0); \
- s = findScreenAtDisplay(d, xid);
-
-static Bool miniviewLeft(CompDisplay *d, CompAction * action, CompActionState state, CompOption * option, int nOption)
-{
- GET_SCREEN
- moveScreenViewport(s,-1,0,TRUE);
- return FALSE;
-}
-
-static Bool miniviewRight(CompDisplay *d, CompAction * action, CompActionState state, CompOption * option, int nOption)
-{
- GET_SCREEN
- moveScreenViewport(s, 1, 0, TRUE);
- return FALSE;
-}
-
-static Bool miniviewDown (CompDisplay *d, CompAction * action, CompActionState state, CompOption * option, int nOption)
-{
- GET_SCREEN
- moveScreenViewport(s, 0, 1, TRUE);
- return FALSE;
-}
-
-static Bool miniviewUp (CompDisplay *d, CompAction * action, CompActionState state, CompOption * option, int nOption)
-{
- GET_SCREEN
- moveScreenViewport(s, 0, -1, TRUE);
- return FALSE;
-}
-
-
-
-static Bool miniviewPaintScreen(CompScreen * s,
- const ScreenPaintAttrib * sAttrib,
- Region region, int output, unsigned int mask)
-{
- Bool status;
-
- MINIVIEW_SCREEN(s);
- if (ms->showing || ms->expoMode)
- {
- mask |= PAINT_SCREEN_TRANSFORMED_MASK;
- }
- UNWRAP(ms, s, paintScreen);
- status = (*s->paintScreen) (s, sAttrib, region, output, mask);
- WRAP(ms, s, paintScreen, miniviewPaintScreen);
-
- return status;
-}
-
-static void miniviewPreparePaintScreen(CompScreen *s, int ICouldCareLess)
-{
- MINIVIEW_SCREEN(s);
- if ((ms->moving && ms->showing) || ms->expoMode)
- {
- int winX, winY;
- int rootX, rootY;
- unsigned int mask_return;
- Window root_return;
- Window child_return;
-
- XQueryPointer(s->display->display, s->root,
- &root_return, &child_return,
- &rootX, &rootY, &winX, &winY, &mask_return);
- if (!ms->expoMode)
- {
- ms->miniX = rootX;
- ms->miniY = rootY;
- }
- else
- {
- ms->pointerX = rootX;
- ms->pointerY = rootY;
- }
- }
- UNWRAP(ms,s,preparePaintScreen);
- (*s->preparePaintScreen) (s,ICouldCareLess);
- WRAP(ms,s,preparePaintScreen,miniviewPreparePaintScreen);
-}
-
-static void miniviewPaintTransformedScreen(CompScreen * s,
- const ScreenPaintAttrib * sAttrib,
- Region region, int output,
- unsigned int mask)
-{
- MINIVIEW_SCREEN(s);
-
- UNWRAP(ms, s, paintTransformedScreen);
- (*s->paintTransformedScreen) (s, sAttrib, region, output, mask);
- if (ms->showing )
- {
- //mask &= PAINT_SCREEN_TRANSFORMED_MASK;
- int oldFilter = s->display->textureFilter;
- s->display->textureFilter = GL_LINEAR_MIPMAP_LINEAR;
-
- glPushMatrix();
- if (ms->zCam > -ms->size)
- ms->zCam -= .075;
-
-
- ScreenPaintAttrib * sa = sAttrib;
-
- glScalef(1.0f,1.0f,1.0f*-ms->zCam);
- glTranslatef(-1.0,1.0,0);
-
- float compensation;
- compensation = ms->size - 2.0f;
- compensation /= 2;
- glTranslatef(-compensation,compensation,0);
-
- if (ms->moveStep <= 0.95)
- ms->moveStep += 0.05;
-
- glTranslatef((1/((float)s->outputDev[output].width/(float)ms->miniX)*-ms->zCam),
- (-1/((float)s->outputDev[output].height/(float)ms->miniY)*-ms->zCam),
- 0);
- int move = 0;
- int ymove = 0;
-
- while (s->x != ms->miniViewport)
- {
- moveScreenViewport(s, 1, 0, FALSE);
- move++;
- }
- while (s->y != ms->miniViewport)
- {
- moveScreenViewport(s,0,1,FALSE);
- ymove++;
- }
- (*s->paintTransformedScreen) (s, sa, region, output, mask);
- s->display->textureFilter = oldFilter;
-
- moveScreenViewport(s,-move,-ymove,FALSE);
-
- glPopMatrix();
- }
- if (ms->expoMode)
- {
-
- clearTargetOutput(s->display, GL_COLOR_BUFFER_BIT);
-
- int oldFilter = s->filter[SCREEN_TRANS_FILTER];
- s->filter[SCREEN_TRANS_FILTER] = COMP_TEXTURE_FILTER_GOOD;
- glPushMatrix();
-
-
-
- //int origView = s->x;
- //moveScreenViewport(s,-s->x,0,FALSE);
- if (ms->expoCam+0.15 <= 1)
- ms->expoCam += 0.15;
-
-
- glScalef(((s->hsize > 1) ? 1/((float)s->hsize/2) : 1)/ms->expoCam,((s->vsize > 1) ? 1/((float)s->vsize/2) : 1)/ms->expoCam,1.0f);
-
-
-
- glTranslatef(-0.15f*s->hsize,0.25f*s->vsize,-1.0f);
-
- glRotatef(10*ms->expoCam,0.0f,1.0f,-0.0f);
-
-
- glTranslatef(0.0f,0.0f,-0.2f);
-
- int i;
- int j;
-
- for (j = 0; j < s->vsize; j++)
- {
- for (i = 0; i < s->hsize; i++)
- {
-
- (*s->paintTransformedScreen) (s, sAttrib,region, output, mask);
-
- glTranslatef(1.0,0.0f,0.0);
-
- moveScreenViewport(s,1,0,FALSE);
- }
- glTranslatef(-(s->hsize),-1.0f,0.0f);
- moveScreenViewport(s,0,1,FALSE);
- }
-
-
-
- //while (s->x != origView)
- // moveScreenViewport(s,1,0,FALSE);
- s->filter[SCREEN_TRANS_FILTER] = oldFilter;
- glPopMatrix();
- }
- WRAP(ms, s, paintTransformedScreen, miniviewPaintTransformedScreen);
-
-}
-
-static void miniviewDonePaintScreen(CompScreen * s)
-{
- MINIVIEW_SCREEN(s);
-
- if ((ms->zCam > ms->size) || ms->expoCam < 1)
- damageScreen(s);
-
-
-
- UNWRAP(ms, s, donePaintScreen);
- (*s->donePaintScreen) (s);
- WRAP(ms, s, donePaintScreen, miniviewDonePaintScreen);
-}
-
-static void miniviewDisplayInitOptions(MiniviewDisplay * md)
-{
- CompOption *o;
-
- o = &md->opt[MINIVIEW_DISPLAY_OPTION_CREATE];
- o->advanced = False;
- o->name = "create";
- o->group = N_("Misc. Settings");
- o->subGroup = N_("");
- o->displayHints = "";
- o->shortDesc = N_("Create");
- o->longDesc = N_("Create thumbnail of current viewport");
- o->type = CompOptionTypeAction;
- o->value.action.initiate = miniviewCreate;
- o->value.action.terminate = 0;
- o->value.action.bell = 0;
- o->value.action.edgeMask = 0;
- o->value.action.state = CompActionStateInitKey;
- o->value.action.type = CompBindingTypeKey;
- o->value.action.key.modifiers = MINIVIEW_CREATE_MODIFIERS_DEFAULT;
- o->value.action.key.keysym = XStringToKeysym(MINIVIEW_CREATE_KEY_DEFAULT);
-
- o = &md->opt[MINIVIEW_DISPLAY_OPTION_EXPO];
- o->advanced = False;
- o->name = "expo";
- o->group = N_("Misc. Settings");
- o->subGroup = N_("");
- o->displayHints = "";
- o->shortDesc = N_("Expo");
- o->longDesc = N_("Engage miniview expo mode.");
- o->type = CompOptionTypeAction;
- o->value.action.initiate = miniviewExpo;
- o->value.action.terminate = 0;
- o->value.action.bell = 0;
- o->value.action.edgeMask = 0;
- o->value.action.state = CompActionStateInitKey;
- o->value.action.type = CompBindingTypeKey;
- o->value.action.key.modifiers = MINIVIEW_EXPO_MODIFIERS_DEFAULT;
- o->value.action.key.keysym = XStringToKeysym(MINIVIEW_EXPO_KEY_DEFAULT);
-
- o = &md->opt[MINIVIEW_DISPLAY_OPTION_HIDE];
- o->advanced = False;
- o->name = "Hide";
- o->group = N_("Misc. Settings");
- o->subGroup = N_("");
- o->displayHints = "";
- o->shortDesc = N_("Hide");
- o->longDesc = N_("Engage miniview hide mode.");
- o->type = CompOptionTypeAction;
- o->value.action.initiate = miniviewHide;
- o->value.action.terminate = 0;
- o->value.action.bell = 0;
- o->value.action.edgeMask = 0;
- o->value.action.state = CompActionStateInitKey;
- o->value.action.type = CompBindingTypeKey;
- o->value.action.key.modifiers = MINIVIEW_HIDE_MODIFIERS_DEFAULT;
- o->value.action.key.keysym = XStringToKeysym(MINIVIEW_HIDE_KEY_DEFAULT);
-
- #define MINIVIEW_MOVE_OPTION(UPPER,LOWER) \
- o = &md->opt[MINIVIEW_DISPLAY_OPTION_##UPPER]; \
- o->name = "Move "#LOWER; \
- o->group = N_("Misc. Settings"); \
- o->subGroup = N_(""); \
- o->displayHints = ""; \
- o->shortDesc = N_(#LOWER); \
- o->longDesc = N_(#LOWER); \
- o->type = CompOptionTypeAction; \
- o->value.action.initiate = miniview##LOWER; \
- o->value.action.terminate = 0; \
- o->value.action.bell = 0; \
- o->value.action.edgeMask = 0; \
- o->value.action.state = CompActionStateInitKey; \
- o->value.action.type = CompBindingTypeKey; \
- o->value.action.key.modifiers = MINIVIEW_VIEWPORTMOVE_MODIFIERS_DEFAULT; \
- o->value.action.key.keysym = XStringToKeysym(MINIVIEW_##UPPER##_KEY_DEFAULT);
-
- MINIVIEW_MOVE_OPTION(LEFT,Left)
- MINIVIEW_MOVE_OPTION(RIGHT,Right)
- MINIVIEW_MOVE_OPTION(UP,Up)
- MINIVIEW_MOVE_OPTION(DOWN,Down)
-
-
- o = &md->opt[MINIVIEW_DISPLAY_OPTION_MOVE];
- o->advanced = False;
- o->name = "move";
- o->group = N_("Misc. Settings");
- o->subGroup = N_("");
- o->displayHints = "";
- o->shortDesc = N_("Move preview");
- o->longDesc = N_("Move current preview to mouse location");
- o->type = CompOptionTypeAction;
- o->value.action.initiate = miniviewMove;
- o->value.action.terminate = 0;
- o->value.action.bell = 0;
- o->value.action.edgeMask = 0;
- o->value.action.state =
- CompActionStateInitButton;
- o->value.action.type = CompBindingTypeButton;
- //o->value.action.key.modifiers = MINIVIEW_MOVE_MODIFIERS_DEFAULT;
- //o->value.action.key.keysym = XStringToKeysym(MINIVIEW_MOVE_KEY_DEFAULT);
- o->value.action.button.modifiers = MINIVIEW_MOVE_MODIFIERS_DEFAULT;
- o->value.action.button.button = MINIVIEW_MOVE_KEY_DEFAULT;
-
-}
-
-static CompOption *miniviewGetDisplayOptions(CompDisplay * d, int *count)
-{
- if (d)
- {
- MINIVIEW_DISPLAY(d);
- *count = NUM_OPTIONS(md);
- return md->opt;
- }
- else
- {
- MiniviewDisplay *md = malloc(sizeof(MiniviewDisplay));
-
- miniviewDisplayInitOptions(md);
- *count = NUM_OPTIONS(md);
- return md->opt;
- }
-}
-
-static Bool
-miniviewSetDisplayOption(CompDisplay * d, char *name, CompOptionValue * value)
-{
- CompOption *o;
- int index;
-
- MINIVIEW_DISPLAY(d);
-
- o = compFindOption(md->opt, NUM_OPTIONS(md), name, &index);
-
- if (!o)
- return FALSE;
-
- switch (index)
- {
- case MINIVIEW_DISPLAY_OPTION_CREATE:
- case MINIVIEW_DISPLAY_OPTION_MOVE:
- case MINIVIEW_DISPLAY_OPTION_EXPO:
- case MINIVIEW_DISPLAY_OPTION_HIDE:
- case MINIVIEW_DISPLAY_OPTION_LEFT:
- case MINIVIEW_DISPLAY_OPTION_RIGHT:
- case MINIVIEW_DISPLAY_OPTION_UP:
- case MINIVIEW_DISPLAY_OPTION_DOWN:
- if (setDisplayAction(d, o, value))
- return TRUE;
- default:
- break;
- }
- return FALSE;
-}
-
-static Bool miniviewInitDisplay(CompPlugin * p, CompDisplay * d)
-{
- MiniviewDisplay *md;
-
- md = malloc(sizeof(MiniviewDisplay));
- if (!md)
- return FALSE;
-
- md->screenPrivateIndex = allocateScreenPrivateIndex(d);
-
- if (md->screenPrivateIndex < 0)
- {
- free(md);
- return FALSE;
- }
-
- miniviewDisplayInitOptions(md);
-
- WRAP(md,d,handleEvent,miniviewHandleEvent);
- d->privates[displayPrivateIndex].ptr = md;
-
- return TRUE;
-}
-
-static void miniviewFiniDisplay(CompPlugin * p, CompDisplay * d)
-{
- MINIVIEW_DISPLAY(d);
-
-
- UNWRAP(md,d,handleEvent);
- freeScreenPrivateIndex(d, md->screenPrivateIndex);
- free(md);
-}
-
-static Bool miniviewInitScreen(CompPlugin * p, CompScreen * s)
-{
- MiniviewScreen *ms;
-
- MINIVIEW_DISPLAY(s->display);
-
- ms = malloc(sizeof(MiniviewScreen));
-
- if (!ms)
- return FALSE;
-
- 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);
- addScreenAction(s, &md->opt[MINIVIEW_DISPLAY_OPTION_MOVE].value.action);
- addScreenAction(s, &md->opt[MINIVIEW_DISPLAY_OPTION_HIDE].value.action);
- addScreenAction(s, &md->opt[MINIVIEW_DISPLAY_OPTION_EXPO].value.action);
-
- WRAP(ms, s, paintScreen, miniviewPaintScreen);
- WRAP(ms, s, donePaintScreen, miniviewDonePaintScreen);
- WRAP(ms, s, paintTransformedScreen, miniviewPaintTransformedScreen);
- WRAP(ms, s, preparePaintScreen, miniviewPreparePaintScreen);
-
- s->privates[md->screenPrivateIndex].ptr = ms;
-
- return TRUE;
-}
-
-static void miniviewFiniScreen(CompPlugin * p, CompScreen * s)
-{
- MINIVIEW_SCREEN(s);
- MINIVIEW_DISPLAY(s->display);
-
- removeScreenAction(s, &md->opt[MINIVIEW_DISPLAY_OPTION_CREATE].value.action);
- removeScreenAction(s, &md->opt[MINIVIEW_DISPLAY_OPTION_MOVE].value.action);
- removeScreenAction(s, &md->opt[MINIVIEW_DISPLAY_OPTION_HIDE].value.action);
- removeScreenAction(s, &md->opt[MINIVIEW_DISPLAY_OPTION_EXPO].value.action);
- UNWRAP(ms, s, paintScreen);
- UNWRAP(ms, s, donePaintScreen);
- UNWRAP(ms, s, paintTransformedScreen);
- UNWRAP(ms, s, preparePaintScreen);
- free(ms);
-}
-
-static Bool miniviewInit(CompPlugin * p)
-{
- displayPrivateIndex = allocateDisplayPrivateIndex();
- if (displayPrivateIndex < 0)
- return FALSE;
- return TRUE;
-}
-
-static void miniviewFini(CompPlugin * p)
-{
- if (displayPrivateIndex >= 0)
- freeDisplayPrivateIndex(displayPrivateIndex);
-}
-
-
-
-CompPluginVTable miniviewVTable = {
- "miniview",
- N_("Mini-viewport"),
- N_("Viewport preview plugin"),
- miniviewInit,
- miniviewFini,
- miniviewInitDisplay,
- miniviewFiniDisplay,
- miniviewInitScreen,
- miniviewFiniScreen,
- 0,
- 0,
- miniviewGetDisplayOptions,
- miniviewSetDisplayOption,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- BERYL_ABI_INFO,
- "beryl-plugins",
- "misc",
- 0,
- 0,
- TRUE,
-};
-
-CompPluginVTable *getCompPluginInfo(void)
-{
- return &miniviewVTable;
-}