2019-05-20 08:10:30 +02:00
|
|
|
/* This file is part of the KDE project
|
2024-08-08 01:08:31 +02:00
|
|
|
SPDX-FileCopyrightText: 2016 Oleg Chernovskiy <kanedias@xaker.ru>
|
|
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
2019-05-20 08:10:30 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "x11eventsplugin.h"
|
|
|
|
|
|
|
|
|
|
#include "x11events.h"
|
|
|
|
|
|
|
|
|
|
#include <KPluginFactory>
|
2022-08-03 21:20:32 +02:00
|
|
|
|
|
|
|
|
#include <QtGui/private/qtx11extras_p.h>
|
2019-05-20 08:10:30 +02:00
|
|
|
|
2022-04-18 21:21:21 +02:00
|
|
|
K_PLUGIN_CLASS(X11EventsPlugin)
|
2019-05-20 08:10:30 +02:00
|
|
|
|
|
|
|
|
X11EventsPlugin::X11EventsPlugin(QObject *parent, const QVariantList &args)
|
|
|
|
|
: EventsPlugin(parent, args)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
EventHandler *X11EventsPlugin::eventHandler()
|
|
|
|
|
{
|
|
|
|
|
// works only under X11
|
|
|
|
|
if(!QX11Info::isPlatformX11())
|
|
|
|
|
return nullptr;
|
|
|
|
|
|
|
|
|
|
return new X11EventHandler();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#include "x11eventsplugin.moc"
|
|
|
|
|
|