From 92d3cb2f224a62ab07fbf3d28bd2ce0ad9b0eef9 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 5 Mar 2021 18:20:56 +0100 Subject: [PATCH] inputmethod: If the client hides itself, act accordingly --- src/inputmethod.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index 9b774a66a6..5343efef62 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -16,6 +16,7 @@ #include "wayland_server.h" #include "workspace.h" #include "screenlockerwatcher.h" +#include "deleted.h" #include #include @@ -167,6 +168,8 @@ void InputMethod::clientAdded(AbstractClient* client) } }); connect(m_inputClient, &AbstractClient::frameGeometryChanged, this, refreshFrame); + connect(m_inputClient, &AbstractClient::windowHidden, this, &InputMethod::hide); + connect(m_inputClient, &AbstractClient::windowClosed, this, &InputMethod::hide); } void InputMethod::handleFocusedSurfaceChanged()