~george-edison55/stackfusion/trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "stackfusion.h"

COMPIZ_PLUGIN_20090315 (stackfusion, StackFusionVTable);

StackFusionScreen::StackFusionScreen(CompScreen * screen)
    : PluginClassHandler <StackFusionScreen, CompScreen> (screen),
      m_c_screen (CompositeScreen::get(screen)),
      m_g_screen (GLScreen::get(screen))
{
    ScreenInterface::setHandler(screen, false);
    CompositeScreenInterface::setHandler(m_c_screen, false);
    GLScreenInterface::setHandler(m_g_screen, false);
}

StackFusionScreen::~StackFusionScreen()
{
    ///...
}

bool StackFusionVTable::init()
{
    if (!CompPlugin::checkPluginABI("core",      CORE_ABIVERSION) ||
        !CompPlugin::checkPluginABI("composite", COMPIZ_COMPOSITE_ABI) ||
        !CompPlugin::checkPluginABI("opengl",    COMPIZ_OPENGL_ABI))
            return false;

    return true;
}