88829de9dd
This change introduces a shell integration class for input panel surfaces. This effectively breaks the direct dependency between our virtual keyboard component in kwin and the input_panel protocol, which means that an input method server could use the layer-shell protocol instead of the input_panel protocol.
29 lines
525 B
C++
29 lines
525 B
C++
/*
|
|
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "waylandshellintegration.h"
|
|
|
|
namespace KWaylandServer
|
|
{
|
|
class InputPanelSurfaceV1Interface;
|
|
}
|
|
|
|
namespace KWin
|
|
{
|
|
|
|
class InputPanelV1Integration : public WaylandShellIntegration
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit InputPanelV1Integration(QObject *parent = nullptr);
|
|
|
|
void createClient(KWaylandServer::InputPanelSurfaceV1Interface *shellSurface);
|
|
};
|
|
|
|
} // namespace KWin
|