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

Fix non-text content using own_window_argb_value #2105

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

Caellian
Copy link
Collaborator

@Caellian Caellian commented Dec 7, 2024

Closes #1504.

own_window_argb_value shouldn't control content color.

Also fixed clear_text using a wrong cairo operator.

Tested on hyprland.

@github-actions github-actions bot added sources PR modifies project sources display: wayland related to Wayland backend labels Dec 7, 2024
Copy link

netlify bot commented Dec 7, 2024

Deploy Preview for conkyweb canceled.

Name Link
🔨 Latest commit 7b42914
🔍 Latest deploy log https://app.netlify.com/sites/conkyweb/deploys/6754c44ed24ae00008e27bec

@Caellian Caellian added bug related to incorrect existing implementation of some functionality text related to `conky.text` variables, their parsing or implementation and removed sources PR modifies project sources display: wayland related to Wayland backend labels Dec 7, 2024
Comment on lines -787 to -789
#ifdef BUILD_ARGB
current_color.alpha = own_window_argb_value.get(*state);
#endif /* BUILD_ARGB */
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Transparent bars caused by this.

Comment on lines -929 to +928
cairo_set_operator(window->cr, CAIRO_OPERATOR_SOURCE);
cairo_paint(window->cr);
cairo_set_operator(window->cr, CAIRO_OPERATOR_CLEAR);
cairo_rectangle(window->cr, 0, 0, window->rectangle.width(),
window->rectangle.height());
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This seems more correct - SO answer.

Resetting to OVER isn't needed because of cairo_restore.

@Caellian Caellian changed the title Fix bars & some elements using own_window_argb_value Fix non-text content using own_window_argb_value Dec 7, 2024
@Caellian Caellian added the display: wayland related to Wayland backend label Dec 7, 2024
@Caellian Caellian requested a review from brndnmtthws December 7, 2024 22:07
@Caellian
Copy link
Collaborator Author

Caellian commented Jan 3, 2025

#2127 fixes omission of cairo_fill in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug related to incorrect existing implementation of some functionality display: wayland related to Wayland backend text related to `conky.text` variables, their parsing or implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Bars use own_window_argb_value for transparency, text doesn't
2 participants