inputmethod: Give text input managers a parent

Otherwise they linger forever
This commit is contained in:
Aleix Pol 2023-02-17 02:32:55 +01:00 committed by Vlad Zahorodnii
parent a1639da6e5
commit 8c86648172

View file

@ -114,9 +114,9 @@ void InputMethod::init()
qCDebug(KWIN_VIRTUALKEYBOARD) << "Registering the DBus interface";
if (waylandServer()) {
new TextInputManagerV1Interface(waylandServer()->display());
new TextInputManagerV2Interface(waylandServer()->display());
new TextInputManagerV3Interface(waylandServer()->display());
new TextInputManagerV1Interface(waylandServer()->display(), this);
new TextInputManagerV2Interface(waylandServer()->display(), this);
new TextInputManagerV3Interface(waylandServer()->display(), this);
connect(waylandServer()->seat(), &SeatInterface::focusedTextInputSurfaceChanged, this, &InputMethod::handleFocusedSurfaceChanged);