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

set_struts improvements #1849

Merged
merged 2 commits into from
Apr 24, 2024
Merged

set_struts improvements #1849

merged 2 commits into from
Apr 24, 2024

Conversation

Caellian
Copy link
Collaborator

@Caellian Caellian commented Apr 20, 2024

This PR modifies set_struts function to accept alignment directly instead of using an intermediate value.

This commit makes code easier to follow and improves performance a tiny bit because it inlines a loop.

Testing

  • bottom and middle alignment seem to not be working on Openbox. Need to be tested against main, it's possible this is a bug in Openbox because set values seem fine.
    • Used incorrect type for values.

@github-actions github-actions bot added the sources PR modifies project sources label Apr 20, 2024
@Caellian Caellian marked this pull request as draft April 20, 2024 06:31
@Caellian Caellian force-pushed the dev/cleanup-globals branch 5 times, most recently from cba15e6 to 8e07629 Compare April 23, 2024 20:39
Base automatically changed from dev/cleanup-globals to main April 23, 2024 21:15
@Caellian Caellian force-pushed the dev/strut-improvements branch from 782b39b to f696db3 Compare April 24, 2024 10:47
@github-actions github-actions bot added the display: x11 related to X11 backend label Apr 24, 2024
Copy link

netlify bot commented Apr 24, 2024

Deploy Preview for conkyweb canceled.

Name Link
🔨 Latest commit 87f21ca
🔍 Latest deploy log https://app.netlify.com/sites/conkyweb/deploys/6628fa595dc36400088dbf33

@Caellian Caellian force-pushed the dev/strut-improvements branch 4 times, most recently from 5cdaf05 to a452468 Compare April 24, 2024 12:08
Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
@Caellian Caellian force-pushed the dev/strut-improvements branch from a452468 to a2df27a Compare April 24, 2024 12:16
Did this to abide by: A "corner" panel that does not extend for the full
length of a screen border SHOULD only set one strut.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
@Caellian Caellian force-pushed the dev/strut-improvements branch from cb6adb7 to 87f21ca Compare April 24, 2024 12:25
@Caellian Caellian marked this pull request as ready for review April 24, 2024 12:28
@Caellian Caellian requested a review from brndnmtthws April 24, 2024 12:33
@Caellian
Copy link
Collaborator Author

@brndnmtthws Try re-running CI when you get to this, I tested it and it should work. CI is failing on package install for some reason.

Copy link
Owner

@brndnmtthws brndnmtthws left a comment

Choose a reason for hiding this comment

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

PR looks good, the CI issue looks temporary.

@brndnmtthws
Copy link
Owner

brndnmtthws commented Apr 24, 2024

Seems to be a known issue, just need to wait for it to be resolved: https://www.githubstatus.com/incidents/7txcg0j03kkg

@Caellian Caellian merged commit c5ee701 into main Apr 24, 2024
62 checks passed
@Caellian Caellian deleted the dev/strut-improvements branch April 24, 2024 13:56
@brndnmtthws brndnmtthws added the feature suggest addition of new functionality that isn't currently supported in any way label Apr 24, 2024
@m42a m42a mentioned this pull request Jun 9, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
display: x11 related to X11 backend feature suggest addition of new functionality that isn't currently supported in any way sources PR modifies project sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants