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

Feat/alt tab cycle #225

Closed
wants to merge 0 commits into from
Closed

Conversation

wiiznokes
Copy link
Contributor

based on #219

impl pop-os/cosmic-launcher#135

With this PR, the service is not intended to be restarted everytime the cosmic-launcher is shown, because the toplevel plugin needs to keep track of some states.

So i just added a field in the plugin config:

#[serde(default)]
pub long_lived: bool,

For plugins that need to always running.

And this variant Frontend -> Service/Plugin

/// The frontend was closed and the service should release resources
/// and prepare for the next query
Close,

I believe the service was written with this usecase in mind, so there isn't much change.

Also, i had to deactivate the sort when the query is empty.

bin/src/main.rs Outdated Show resolved Hide resolved
service/src/priority.rs Outdated Show resolved Hide resolved
@wiiznokes wiiznokes force-pushed the feat/alt-tab-cycle branch from deb4d70 to 4966c75 Compare July 11, 2024 14:08
@wiiznokes wiiznokes closed this Jul 13, 2024
@wiiznokes wiiznokes force-pushed the feat/alt-tab-cycle branch from 26170d8 to 1725320 Compare July 13, 2024 09:43
@wiiznokes wiiznokes mentioned this pull request Jul 13, 2024
@wiiznokes wiiznokes deleted the feat/alt-tab-cycle branch July 19, 2024 14:52
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