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

libportal: Add activation-token to notification-action-invoked #88

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

Conversation

3v1n0
Copy link

@3v1n0 3v1n0 commented May 5, 2022

Since some time FDO Notifications introduced the ActivationToken signal
to ensure that clients will receive an X11-startup notification ID or a
wayland xdg-activation token in order to support stealing-focus
prevention protocols.

However this isn't supported by xdg-desktop-portal's.
So fill the gap by adding a further activation token.

While it could be added by as an optional parameter, it's just better to
make it explicit.

At the same time, let's bump the library version as the signal signature
changed (while adding a new one with an extra parameter looked overkill.

Required by flatpak/xdg-desktop-portal#791

3v1n0 added 2 commits May 6, 2022 17:24
Use cleaner way to handle callback data in case one is provided, making
it easier to handle if we need to chain more calls
@3v1n0 3v1n0 force-pushed the activation-token branch 4 times, most recently from 5089d01 to 778f9ea Compare May 6, 2022 21:31
3v1n0 added 3 commits May 7, 2022 00:53
Since some time FDO Notifications introduced the ActivationToken signal
to ensure that clients will receive an X11-startup notification ID or a
wayland xdg-activation token in order to support stealing-focus
prevention protocols.

However this isn't supported by xdg-desktop-portal's.
So fill the gap by adding a further activation token.

While it could be added by as an optional parameter, it's just better to
make it explicit.

At the same time, let's bump the library version as the signal signature
changed (while adding a new one with an extra parameter looked overkill.
Variant's can be null on signal emissions, nor can be the case here
because we're getting it parsing a gvariant that will always include an
empty array, in case.
@3v1n0
Copy link
Author

3v1n0 commented Jul 12, 2022

@GeorgesStavracas have some time for this (and maybe the related portal one)? 😄

@jsparber
Copy link
Contributor

jsparber commented Oct 30, 2024

The user can now obtain an activation token since notification v2 is now merged. flatpak/xdg-desktop-portal#1298 I think this can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants