-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCompositor.cpp
39 lines (29 loc) · 927 Bytes
/
Compositor.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "Compositor.h"
#include "InputMethodManagerV2.h"
#include "TextInputManagerV3.h"
#include "VirtualKeyboardManagerV1.h"
Compositor::Compositor()
: QWaylandCompositor()
{
}
Compositor::~Compositor() { }
void Compositor::create()
{
QWaylandCompositor::create();
m_textInputManagerV3 = new TextInputManagerV3(this, this);
m_textInputManagerV3->init(display());
m_inputMethodManagerV2 = new InputMethodManagerV2(this, this);
m_inputMethodManagerV2->init(display());
m_virtualKeyboardManagerV1 = new VirtualKeyboardManagerV1(this);
m_virtualKeyboardManagerV1->init(display());
}
TextInputManagerV3 *Compositor::getTextInputManagerV3()
{
return m_textInputManagerV3;
}
InputMethodManagerV2 *Compositor::getInputMethodManagerV2()
{
return m_inputMethodManagerV2;
}