Do not try to load plugin when building without decos
This commit is contained in:
parent
fda841787f
commit
cf1ab4e330
2 changed files with 6 additions and 0 deletions
|
@ -1,2 +1,3 @@
|
||||||
/* Define if you have libcaptury */
|
/* Define if you have libcaptury */
|
||||||
#cmakedefine HAVE_CAPTURY 1
|
#cmakedefine HAVE_CAPTURY 1
|
||||||
|
#cmakedefine KWIN_BUILD_DECORATIONS 1
|
||||||
|
|
|
@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
|
||||||
#include "plugins.h"
|
#include "plugins.h"
|
||||||
|
#include "config-kwin.h"
|
||||||
|
|
||||||
#include <kglobal.h>
|
#include <kglobal.h>
|
||||||
#include <klocale.h>
|
#include <klocale.h>
|
||||||
|
@ -35,7 +36,11 @@ PluginMgr::PluginMgr()
|
||||||
{
|
{
|
||||||
defaultPlugin = (QPixmap::defaultDepth() > 8) ?
|
defaultPlugin = (QPixmap::defaultDepth() > 8) ?
|
||||||
"kwin3_oxygen" : "kwin3_plastik";
|
"kwin3_oxygen" : "kwin3_plastik";
|
||||||
|
#ifdef KWIN_BUILD_DECORATIONS
|
||||||
loadPlugin(""); // load the plugin specified in cfg file
|
loadPlugin(""); // load the plugin specified in cfg file
|
||||||
|
#else
|
||||||
|
setNoDecoration(true);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void PluginMgr::error(const QString &error_msg)
|
void PluginMgr::error(const QString &error_msg)
|
||||||
|
|
Loading…
Reference in a new issue