You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
874 B
33 lines
874 B
/* |
|
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) |
|
{ |
|
emit clientCreated(new InputPanelV1Client(shellSurface)); |
|
} |
|
|
|
} // namespace KWin
|
|
|