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

wf-background: allow seamless background updates #200

Merged
merged 3 commits into from
Feb 13, 2024

Conversation

lcolitti
Copy link
Contributor

@lcolitti lcolitti commented Dec 4, 2023

This adds two minor features to wf-background:

  • The ability to set the fade duration (including to zero).
  • The ability to update/cycle the background by sending SIGHUP.

Together, these can be allowed to implement seamless background
updates of slow-moving scenes. As an example, my background is an
image recalculated by xplanet every few minutes. I run xplanet
with a post_command that sends a SIGHUP to wf-background.
With a fade duration of zero, wf-background just replaces the
image imperceptibly, with no fading and no flicker.

Copy link
Member

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, there are two issues which need resolving first.

@lcolitti lcolitti force-pushed the seamless-background-update branch 2 times, most recently from e342815 to 7aa867d Compare December 5, 2023 11:52
@lcolitti lcolitti requested a review from ammen99 December 5, 2023 11:53
Copy link
Member

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@lcolitti lcolitti force-pushed the seamless-background-update branch from 7aa867d to 934e33c Compare December 6, 2023 05:53
Copy link
Member

@soreau soreau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but I have a few nitpicks.

@lcolitti lcolitti force-pushed the seamless-background-update branch from 934e33c to 1bec678 Compare December 7, 2023 11:29
@lcolitti lcolitti requested a review from soreau December 7, 2023 11:32
Copy link
Member

@soreau soreau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM aside from the need to drop the timer arg from change_background().

@lcolitti lcolitti force-pushed the seamless-background-update branch from 1bec678 to 886a6d9 Compare December 8, 2023 13:42
@lcolitti lcolitti requested a review from soreau February 13, 2024 05:42
@lcolitti
Copy link
Contributor Author

@soreau I think the comment you had was already resolved in the most recent push. Could you take another look?

@ammen99
Copy link
Member

ammen99 commented Feb 13, 2024

Thanks again :)

@ammen99 ammen99 merged commit 9dc93f3 into WayfireWM:master Feb 13, 2024
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.

3 participants