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

label: fix rendering with multiple timers that fire at the same time #147

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

PaideiaDilemma
Copy link
Collaborator

@PaideiaDilemma PaideiaDilemma commented Mar 7, 2024

The problem is that getAssetByID might return a nullptr if asyncLoopState.busy is true.
In that case the callback of asyncResourceGatherer does trigger rendering, but the asset is not getting updated.

Not sure if you want to re-render like this or handle this case (asyncLoopState.busy beeing true) specifically.

Fixes #134

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

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

lgtm

@vaxerski vaxerski merged commit e9a57f0 into hyprwm:main Mar 7, 2024
1 check passed
PaideiaDilemma added a commit to PaideiaDilemma/hyprlock that referenced this pull request Mar 8, 2024
PaideiaDilemma added a commit to PaideiaDilemma/hyprlock that referenced this pull request Mar 8, 2024
@PaideiaDilemma PaideiaDilemma mentioned this pull request Mar 8, 2024
vaxerski pushed a commit that referenced this pull request Mar 8, 2024
* label: render output via stringPort instead of surface

* label: retry onAssetCallback

Calling `render` might not update the asset when the surfaces frameCallback is already set.

* Revert "label: fix rendering with multiple timers that fire at the same time (#147)"

This reverts commit e9a57f0.
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.

[BUG] Label is not updating without input-field
2 participants