mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-24 23:25:58 +01:00
input-capture: various fixes
This commit is contained in:
parent
5a3c5827a3
commit
01d24daacc
1 changed files with 2 additions and 3 deletions
|
@ -42,7 +42,7 @@ CInputCapturePortal::CInputCapturePortal(SP<CCHyprlandInputCaptureManagerV1> mgr
|
||||||
m_pObject->registerMethod(INTERFACE_NAME, "Release", "osa{sv}", "ua{sv}", [&](sdbus::MethodCall c) { onRelease(c); });
|
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->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->registerProperty(INTERFACE_NAME, "version", "u", [](sdbus::PropertyGetReply& reply) { reply << (uint32_t)1; });
|
||||||
|
|
||||||
m_pObject->finishRegistration();
|
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) {
|
bool CInputCapturePortal::SSession::activate(double x, double y, uint32_t borderId) {
|
||||||
if (status != ENABLED) {
|
if (status != ENABLED)
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
|
|
||||||
activationId += 5;
|
activationId += 5;
|
||||||
status = ACTIVATED;
|
status = ACTIVATED;
|
||||||
|
|
Loading…
Reference in a new issue