From a151525c0ae83d484bca40778fe04ac687556428 Mon Sep 17 00:00:00 2001 From: Gwilherm Folliot Date: Mon, 30 Sep 2024 18:09:26 +0200 Subject: [PATCH] input-capture: various fixes --- src/portals/InputCapture.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/portals/InputCapture.cpp b/src/portals/InputCapture.cpp index 3567e89..ebfb507 100644 --- a/src/portals/InputCapture.cpp +++ b/src/portals/InputCapture.cpp @@ -42,7 +42,7 @@ CInputCapturePortal::CInputCapturePortal(SP mgr m_pObject->registerMethod(INTERFACE_NAME, "Release", "osa{sv}", "ua{sv}", [&](sdbus::MethodCall c) { onRelease(c); }); m_pObject->registerMethod(INTERFACE_NAME, "ConnectToEIS", "osa{sv}", "h", [&](sdbus::MethodCall c) { onConnectToEIS(c); }); - m_pObject->registerProperty(INTERFACE_NAME, "SupportedCapabilities", "u", [](sdbus::PropertyGetReply& reply) { reply << (uint)(1 | 2); }); + m_pObject->registerProperty(INTERFACE_NAME, "SupportedCapabilities", "u", [](sdbus::PropertyGetReply& reply) { reply << (uint32_t)(1 | 2); }); m_pObject->registerProperty(INTERFACE_NAME, "version", "u", [](sdbus::PropertyGetReply& reply) { reply << (uint32_t)1; }); m_pObject->finishRegistration(); @@ -420,9 +420,8 @@ void CInputCapturePortal::activate(sdbus::ObjectPath sessionHandle, double x, do } bool CInputCapturePortal::SSession::activate(double x, double y, uint32_t borderId) { - if (status != ENABLED) { + if (status != ENABLED) return false; - } activationId += 5; status = ACTIVATED;