inputmethod: If the client hides itself, act accordingly

This commit is contained in:
Aleix Pol 2021-03-05 18:20:56 +01:00 committed by Aleix Pol Gonzalez
parent 7a937fc7af
commit 92d3cb2f22

View file

@ -16,6 +16,7 @@
#include "wayland_server.h" #include "wayland_server.h"
#include "workspace.h" #include "workspace.h"
#include "screenlockerwatcher.h" #include "screenlockerwatcher.h"
#include "deleted.h"
#include <KWaylandServer/display.h> #include <KWaylandServer/display.h>
#include <KWaylandServer/seat_interface.h> #include <KWaylandServer/seat_interface.h>
@ -167,6 +168,8 @@ void InputMethod::clientAdded(AbstractClient* client)
} }
}); });
connect(m_inputClient, &AbstractClient::frameGeometryChanged, this, refreshFrame); 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() void InputMethod::handleFocusedSurfaceChanged()