mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-12-27 20:09:48 +01:00
input-capture: various fixes
This commit is contained in:
parent
1bdc7f1e82
commit
015955e927
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, "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;
|
||||
|
|
Loading…
Reference in a new issue