Register metatype for KWin::EffectWindow*

It's used as arg in a QMetaObject::invokeMethod and there was a report
about KWin printing a warning of unregistered metatype.
This commit is contained in:
Martin Gräßlin 2016-08-26 15:24:00 +02:00
parent be79d1aeda
commit 440cca918e

View file

@ -35,6 +35,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "workspace.h"
#include "xcbutils.h"
#include <kwineffects.h>
// KDE
#include <KAboutData>
#include <KLocalizedString>
@ -102,6 +104,7 @@ Application::Application(Application::OperationMode mode, int &argc, char **argv
, m_operationMode(mode)
{
qRegisterMetaType<Options::WindowOperation>("Options::WindowOperation");
qRegisterMetaType<KWin::EffectWindow*>();
}
void Application::setConfigLock(bool lock)