diff options
Diffstat (limited to 'tests/auto/client/shared/textinput.cpp')
-rw-r--r-- | tests/auto/client/shared/textinput.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/auto/client/shared/textinput.cpp b/tests/auto/client/shared/textinput.cpp new file mode 100644 index 000000000..fc4865d71 --- /dev/null +++ b/tests/auto/client/shared/textinput.cpp @@ -0,0 +1,19 @@ +// Copyright (C) 2019 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +#include "textinput.h" + +namespace MockCompositor { + +TextInputManager::TextInputManager(CoreCompositor *compositor) +{ + init(compositor->m_display, 1); +} + +void TextInputManager::zwp_text_input_manager_v2_get_text_input(Resource *resource, uint32_t id, wl_resource *seatResource) +{ + Q_UNUSED(seatResource); + add(resource->client(), id, resource->version()); +} + +} // namespace MockCompositor |