Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inputcapture: add support for persist_mode and restore_token #1186

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

whot
Copy link
Contributor

@whot whot commented Nov 3, 2023

Identical to the existing RemoteDesktop/ScreenCast persist modes, just this time for InputCapture. This allows an application to keep the permissions past things like screen savers activating and whatnot.

Keeping this as draft until we have the mutter side for real-world testing beyond the test suite. libportal obviously will need updates as well.

cc @jadahl

De-duplicate the two identical implementations.
For PERSIST_MODE_NONE
xdp_session_persistence_generate_and_save_restore_token() sets our token
and restore_data to NULL. Let's not try to add it to the results then.
This can be destructured in the caller if need be but for session
checks we need the Response so we can close the Session
So far it was good enough to pretend we're creating a session, let's
switch this over to a true session object on the bus that we can call
Close() on.
Identical in use to the RemoteDesktop/ScreenCast versions, this allows
us to continue a session without prompting for user interaction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Needs Triage
Development

Successfully merging this pull request may close these issues.

2 participants