kwin/src/inputpanelv1integration.cpp
Vlad Zahorodnii 1b2c7b248b Run clazy with qt-keywords fixit
In C++20, there will be emit() class member, which can conflict with the
emit keyword. Given that, there are plans to enable QT_NO_KEYWORDS by
default in the future.

See also
https://lists.qt-project.org/pipermail/development/2020-February/038812.html
2021-06-08 10:49:42 +03:00

33 lines
876 B
C++

/*
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "inputpanelv1integration.h"
#include "inputpanelv1client.h"
#include "wayland_server.h"
#include <KWaylandServer/display.h>
#include <KWaylandServer/inputmethod_v1_interface.h>
using namespace KWaylandServer;
namespace KWin
{
InputPanelV1Integration::InputPanelV1Integration(QObject *parent)
: WaylandShellIntegration(parent)
{
InputPanelV1Interface *shell = new InputPanelV1Interface(waylandServer()->display(), this);
connect(shell, &InputPanelV1Interface::inputPanelSurfaceAdded,
this, &InputPanelV1Integration::createClient);
}
void InputPanelV1Integration::createClient(InputPanelSurfaceV1Interface *shellSurface)
{
Q_EMIT clientCreated(new InputPanelV1Client(shellSurface));
}
} // namespace KWin