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:
parent
be79d1aeda
commit
440cca918e
1 changed files with 3 additions and 0 deletions
3
main.cpp
3
main.cpp
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue