From 8c866481725bcaaa13096e844034b1571cde2c7e Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 17 Feb 2023 02:32:55 +0100 Subject: [PATCH] inputmethod: Give text input managers a parent Otherwise they linger forever --- src/inputmethod.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index 84882a9a98..e8ec90962c 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -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);