From bd5fd7bb8432d2ebc94613e8f56ee67e8a81ac3f Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 26 Mar 2008 00:55:39 +0000 Subject: [PATCH] showfps requires both GL and RENDER compositing, and is disabled in CMakeLists unless you have both; reflect this in the rest of the code as well. svn path=/trunk/KDE/kdebase/workspace/; revision=790175 --- effects/configs_builtins.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/effects/configs_builtins.cpp b/effects/configs_builtins.cpp index 465218f9ba..5a6c9a1279 100644 --- a/effects/configs_builtins.cpp +++ b/effects/configs_builtins.cpp @@ -70,12 +70,17 @@ KWIN_EFFECT_CONFIG_FACTORY registerPlugin("sharpen"); \ registerPlugin("snow"); \ registerPlugin("trackmouse"); \ + +#define GL_RENDER_PLUGINS \ registerPlugin ("showfps"); \ #ifdef KWIN_HAVE_OPENGL_COMPOSITING K_PLUGIN_FACTORY_DEFINITION(EffectFactory, NON_GL_PLUGINS GL_PLUGINS +#ifdef KWIN_HAVE_XRENDER_COMPOSITING + GL_RENDER_PLUGINS +#endif ) #else K_PLUGIN_FACTORY_DEFINITION(EffectFactory,