mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-24 15:15:58 +01:00
Free EIS server on disable
This commit is contained in:
parent
44ba88d82c
commit
5a3c5827a3
1 changed files with 3 additions and 2 deletions
|
@ -99,8 +99,6 @@ void CInputCapturePortal::onCreateSession(sdbus::MethodCall& call) {
|
|||
session->session->onDestroy = [session, this]() {
|
||||
disable(session->sessionHandle);
|
||||
|
||||
session->eis->stopServer();
|
||||
session->eis = nullptr;
|
||||
Debug::log(LOG, "[input-capture] Session {} destroyed", session->sessionHandle.c_str());
|
||||
|
||||
session->session.release();
|
||||
|
@ -502,6 +500,9 @@ void CInputCapturePortal::disable(sdbus::ObjectPath sessionHandle) {
|
|||
if (!session->disable())
|
||||
return;
|
||||
|
||||
session->eis->stopServer();
|
||||
session->eis.reset();
|
||||
|
||||
auto signal = m_pObject->createSignal(INTERFACE_NAME, "Disable");
|
||||
signal << sessionHandle;
|
||||
|
||||
|
|
Loading…
Reference in a new issue