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

Stop MPRIS module from updating every ~20ms #2276

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

skligys
Copy link
Contributor

@skligys skligys commented Jul 3, 2023

I noticed that while MPRIS module is running and music is playing, all tooltips on other modules stop working. When music is paused or stopped, they work again.

Upon investigation, MPRIS onPlayerMetadata(), onPlayerPlay() callbacks get triggered every ~20ms and call Mpris::update() without regard for update interval configured. The Mpris label gets updated every time and interferes with showing tooltips for other modules.

The fix is to ignore any Mpris::update() calls until the configured update interval elapses from the previous non-ignored call.

…PlayerPlay()

callbacks get triggered without regard for update interval.
@Alexays Alexays merged commit 265b4ed into Alexays:master Jul 4, 2023
8 of 9 checks passed
@Alexays
Copy link
Owner

Alexays commented Jul 4, 2023

Thanks!

@skligys skligys deleted the fix_mpris_ui_spamming branch July 19, 2023 16:07
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.

None yet

2 participants