not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / kwin / plugins.cpp
blob0a1f695e5f043caba72992a8620ff8fdc67918a8
1 /********************************************************************
2 KWin - the KDE window manager
3 This file is part of the KDE project.
5 Copyright (C) 1999, 2000 Daniel M. Duley <mosfet@kde.org>
6 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 *********************************************************************/
22 #include "plugins.h"
24 #include <kglobal.h>
25 #include <klocale.h>
26 #include <stdlib.h>
27 #include <QPixmap>
29 namespace KWin
32 PluginMgr::PluginMgr()
33 : KDecorationPlugins( KGlobal::config())
35 defaultPlugin = (QPixmap::defaultDepth() > 8) ?
36 "kwin3_ozone" : "kwin3_plastik";
37 loadPlugin( "" ); // load the plugin specified in cfg file
40 void PluginMgr::error( const QString &error_msg )
42 qWarning( "%s", (i18n("KWin: ") + error_msg +
43 i18n("\nKWin will now exit...")).toLocal8Bit().data() );
44 exit(1);
47 bool PluginMgr::provides( Requirement )
49 return false;
52 } // namespace