mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-12-27 03:49:48 +01:00
Free EIS server on disable
This commit is contained in:
parent
b7ce986874
commit
1bdc7f1e82
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