From 580439ecbc7bad086470047553c243c055fdbc40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 2 Jan 2008 15:18:34 +0000 Subject: [PATCH] Effects major version 0 is unstable, so require exact match. svn path=/trunk/KDE/kdebase/workspace/; revision=755989 --- effects.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/effects.cpp b/effects.cpp index 5e6867cd21..98df05e0a0 100644 --- a/effects.cpp +++ b/effects.cpp @@ -733,8 +733,10 @@ bool EffectsHandlerImpl::loadEffect( const QString& name ) typedef int (*t_versionfunc)(); int version = reinterpret_cast< t_versionfunc >( version_func )(); // call it // Version must be the same or less, but major must be the same. + // With major 0 minor must match exactly. if( version > KWIN_EFFECT_API_VERSION - || ( version >> 8 ) != KWIN_EFFECT_API_VERSION_MAJOR ) + || ( version >> 8 ) != KWIN_EFFECT_API_VERSION_MAJOR + || ( KWIN_EFFECT_API_VERSION_MAJOR == 0 && version != KWIN_EFFECT_API_VERSION )) { kWarning( 1212 ) << "Effect " << name << " requires unsupported API version " << version; return false;