KWin
Loading...
Searching...
No Matches
src
inputpanelv1integration.cpp
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4
SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#include "
inputpanelv1integration.h
"
8
#include "
inputpanelv1window.h
"
9
#include "
wayland/display.h
"
10
#include "
wayland/inputmethod_v1.h
"
11
#include "
wayland_server.h
"
12
13
namespace
KWin
14
{
15
16
InputPanelV1Integration::InputPanelV1Integration
(QObject *parent)
17
:
WaylandShellIntegration
(parent)
18
{
19
InputPanelV1Interface
*shell =
new
InputPanelV1Interface
(
waylandServer
()->display(),
this
);
20
21
connect(shell, &
InputPanelV1Interface::inputPanelSurfaceAdded
,
22
this
, &
InputPanelV1Integration::createWindow
);
23
}
24
25
void
InputPanelV1Integration::createWindow
(
InputPanelSurfaceV1Interface
*shellSurface)
26
{
27
Q_EMIT
windowCreated
(
new
InputPanelV1Window
(shellSurface));
28
}
29
30
}
// namespace KWin
31
32
#include "moc_inputpanelv1integration.cpp"
KWin::InputPanelSurfaceV1Interface
Definition
inputmethod_v1.h:128
KWin::InputPanelV1Integration::createWindow
void createWindow(InputPanelSurfaceV1Interface *shellSurface)
Definition
inputpanelv1integration.cpp:25
KWin::InputPanelV1Integration::InputPanelV1Integration
InputPanelV1Integration(QObject *parent=nullptr)
Definition
inputpanelv1integration.cpp:16
KWin::InputPanelV1Interface
Definition
inputmethod_v1.h:111
KWin::InputPanelV1Interface::inputPanelSurfaceAdded
void inputPanelSurfaceAdded(InputPanelSurfaceV1Interface *surface)
KWin::InputPanelV1Window
Definition
inputpanelv1window.h:21
KWin::WaylandShellIntegration
Definition
waylandshellintegration.h:15
KWin::WaylandShellIntegration::windowCreated
void windowCreated(Window *window)
display.h
inputmethod_v1.h
inputpanelv1integration.h
inputpanelv1window.h
KWin
Definition
activation_test.cpp:20
KWin::waylandServer
WaylandServer * waylandServer()
Definition
wayland_server.h:297
wayland_server.h
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0